Reputation: 676
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:
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.
Note : Using ggvis directely in shiny markdown document, it works well.
Upvotes: 0
Views: 194
Reputation: 1208
By default shiny graphs have options(resizable=TRUE)
, which creates that small arrow in the right bottom.
I suppose in a markdown document resizable
is set to FALSE
or suppressed by setting height
by hand
Upvotes: 0