简体   繁体   English

ggvis Figure无法在闪亮的Markdown文档中放大嵌入式闪亮的应用程序

[英]ggvis figure can't zoom in an embedded shiny app in shiny markdown document

I have a shiny app embedded in a shiny markdown document. 我在闪亮的降价文档中嵌入了闪亮的应用程序。 If I run the app lonely, the ggvis figure can zoom in and out like the following picture: 如果我独自运行该应用程序,则ggvis图可以放大和缩小,如下图所示: 在此处输入图片说明

Pay attention to the small arrow in the rigth bottom. 注意底部的小箭头。

But when I embed this app to shiny markdown document by using the following code: 但是,当我使用以下代码将此应用程序嵌入闪亮的降价文档时:

````{r, echo = FALSE}
    require(ggvis)
    require(knitr)
    require(shiny)
    shinyAppDir(
           system.file("../../../../Shiny/DataProcess/R", package="shiny"),
           options=list( width="100%",height=1000)
    )
````

This app is correctly embedded. 此应用已正确嵌入。 But the figure can't zoom. 但是这个数字无法放大。 Like following: 如下所示: 在此处输入图片说明

The small arrow disappears. 小箭头消失。

I am new to shiny and shiny markdown document, I hope your help. 我是闪亮的Markdown文档的新手,希望对您有所帮助。

  1. My rstudio version is Version 0.98.1103 我的rstudio版本是0.98.1103版
  2. R version is R x64 3.2.0 R版本是R x64 3.2.0

Note : Using ggvis directely in shiny markdown document, it works well. 注意:直接在闪亮的降价文档中使用ggvis,效果很好。

By default shiny graphs have options(resizable=TRUE) , which creates that small arrow in the right bottom. 默认情况下,闪亮的图形具有options(resizable=TRUE) ,这会在右下角创建该小箭头。 I suppose in a markdown document resizable is set to FALSE or suppressed by setting height by hand 我想在markdown文档中将resizable文档设置为FALSE或通过手动设置height来抑制

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM