我遇到了问题,包括将 ggvis 绘制到闪亮降价中。例如,守则
---
title: "testShiny"
runtime: shiny
output: html_document
---
```{r, fig.height=3}
require(ggvis)
require(knitr)
require(shiny)
women %>%
ggvis(x= ~height, y = ~weight) %>%
layer_points()%>%
bind_shiny("p")
ggvisOutput("p")
```
导致ggvisOutput
无所事事,而线条
women %>%
ggvis(x= ~height, y = ~weight) %>%
layer_points()%>%
bind_shiny("p")
产生一个 Plot 而不是 declearing output$p
。我认为bind_shiny(vis, id)
是这里的问题。
任何想法如何解决这一问题?
PS:我的 sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: i686-pc-linux-gnu (32-bit)
locale:
[1] LC_CTYPE=de_DE.UTF-8 LC_NUMERIC=C LC_TIME=de_DE.UTF-8
[4] LC_COLLATE=de_DE.UTF-8 LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=de_DE.UTF-8
[7] LC_PAPER=de_DE.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rmarkdown_0.2.55 markdown_0.7.3 shiny_0.10.1.9001 knitr_1.6.12 ggvis_0.3.0.99
loaded via a namespace (and not attached):
[1] assertthat_0.1 digest_0.6.4 dplyr_0.2 evaluate_0.5.5 formatR_0.10 htmltools_0.2.4
[7] httpuv_1.3.0 magrittr_1.0.1 parallel_3.0.2 Rcpp_0.11.2 RJSONIO_1.3-0 stringr_0.6.2
[13] tools_3.0.2 xtable_1.7-3 yaml_2.1.13