R: 下载 png 时 Plotly 包错误
R: Plotly package error in downloading png
我正在使用 plotly 包在我闪亮的应用程序中创建绘图,但我无法下载这些绘图。因为这是一个闪亮的应用程序,我希望它是交互式的而不是硬编码的。
代码:
library(plotly)
dat <- data.frame(x = rnorm(1:100), y = rnorm(1:100))
p <- ggplot(dat, aes(x = x, y = y)) + geom_point()
plotly_build(p)
会话信息:
R version 3.3.0 (2016-05-03)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.5 (El Capitan)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] plotly_3.6.0 ggplot2_2.1.0 BiocInstaller_1.23.6
loaded via a namespace (and not attached):
[1] Rcpp_0.12.6 tidyr_0.5.1 assertthat_0.1 digest_0.6.9 grid_3.3.0 plyr_1.8.4 R6_2.1.2 jsonlite_1.0
[9] gtable_0.2.0 magrittr_1.5 scales_0.4.0 httr_1.2.1 viridis_0.3.4 labeling_0.3 tools_3.3.0 htmlwidgets_0.6
[17] munsell_0.4.3 yaml_2.1.13 rsconnect_0.4.3 base64enc_0.1-3 colorspace_1.2-6 htmltools_0.3.5 gridExtra_2.2.1 tibble_1.1
我在下载剧情时遇到问题。当我点击 plotly 图中右上角工具栏上的相机时,出现以下错误:
我在 Rstudio 查看器窗格、Safari 和 Chrome 中遇到了这个问题。我怎样才能避免这个问题并下载剧情?
更新您的 plotly
包应该可以解决问题。
http://community.plot.ly/t/download-png-not-working-in-r-shiny/1574/3
我正在使用 plotly 包在我闪亮的应用程序中创建绘图,但我无法下载这些绘图。因为这是一个闪亮的应用程序,我希望它是交互式的而不是硬编码的。
代码:
library(plotly)
dat <- data.frame(x = rnorm(1:100), y = rnorm(1:100))
p <- ggplot(dat, aes(x = x, y = y)) + geom_point()
plotly_build(p)
会话信息:
R version 3.3.0 (2016-05-03)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.5 (El Capitan)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] plotly_3.6.0 ggplot2_2.1.0 BiocInstaller_1.23.6
loaded via a namespace (and not attached):
[1] Rcpp_0.12.6 tidyr_0.5.1 assertthat_0.1 digest_0.6.9 grid_3.3.0 plyr_1.8.4 R6_2.1.2 jsonlite_1.0
[9] gtable_0.2.0 magrittr_1.5 scales_0.4.0 httr_1.2.1 viridis_0.3.4 labeling_0.3 tools_3.3.0 htmlwidgets_0.6
[17] munsell_0.4.3 yaml_2.1.13 rsconnect_0.4.3 base64enc_0.1-3 colorspace_1.2-6 htmltools_0.3.5 gridExtra_2.2.1 tibble_1.1
我在下载剧情时遇到问题。当我点击 plotly 图中右上角工具栏上的相机时,出现以下错误:
我在 Rstudio 查看器窗格、Safari 和 Chrome 中遇到了这个问题。我怎样才能避免这个问题并下载剧情?
更新您的 plotly
包应该可以解决问题。
http://community.plot.ly/t/download-png-not-working-in-r-shiny/1574/3