代码之家  ›  专栏  ›  技术社区  ›  George

渲染图不显示

  •  0
  • George  · 技术社区  · 6 年前

    我正在使用下面的代码呈现一个绘图,但该绘图不显示。

    ---
    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 回复  |  直到 6 年前
        1
  •  0
  •   arg0naut91    6 年前

    我将删除块选项中的内容:

    ```{r}
    
    renderPlot({
        GGally::ggpairs(z)
    })
    
    ```
    
    推荐文章