r - 渲染图不出现
问题描述
我正在使用下面的代码来渲染绘图,但绘图没有出现。
---
title: "Untitled"
author: "George"
date: "12/3/2018"
output:
flexdashboard::flex_dashboard:
orientation: rows
runtime: shiny
---
```{r global, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
library(flexdashboard)
library(dplyr)
library(GGally)
x <- c(1,2,3)
y <- c(11,22,33)
z <- data.frame(x, y)
```
Introduction
=======================================================================
### General info
- A
- B
Corr
=======================================================================
### Correlation
```{r include=TRUE, results='hide'}
renderPlot({
GGally::ggpairs(z)
})
```
解决方案
我会删除你在块选项中的内容:
```{r}
renderPlot({
GGally::ggpairs(z)
})
```
推荐阅读
- javascript - 如何使用 forEach-Loop 将数组的内容转为另一个数组?
- powershell - 导出然后导入自定义的 WMI 命名空间
- android - 覆盖整个活动的底部导航视图
- java - java.jdbc clojure 执行!插入数量
- nuget - 我可以控制工件中_local_ repos 的顺序吗?
- node.js - nodeJS 子进程在 process.on(stdout) 和 process.on(exit) 之间的竞争条件
- c# - ASP.NET Core 2.0 app.UseAuthentication 未针对每个请求执行
- c# - 生成大量字节 [] 对象时 C# 中的 System.OutOfMemoryException
- javascript - 在我的项目中包含“布尔解析器”库(“未定义要求”)
- selenium - 聚合物测试 -l chrome:无法从 https://download.microsoft.com 请求标头