[英]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)
sessionInfo:
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
我無法下載情節。 當我點擊圖表右上方工具欄中的相機時,它給出了以下錯誤:
我在Rstudio查看器窗格,Safari和Chrome中遇到此問題。 我該如何規避這個問題並下載情節?
更新你的plotly
包應該可以解決問題。 http://community.plot.ly/t/download-png-not-working-in-r-shiny/1574/3
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.