渲染图未出现

时间:2018-12-03 10:55:23

标签: r shiny flexdashboard

我正在使用下面的代码来绘制图形,但是该图形没有出现。

---
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)
})

```

1 个答案:

答案 0 :(得分:0)

我将删除您在块选项中拥有的内容:

```{r}

renderPlot({
    GGally::ggpairs(z)
})

```