我的数据/结果包含地理编码位置(纬度/经度)和我希望使用R闪亮进行交互的日期/时间戳.我创建了R闪亮的应用程序,其中包含几个传单映射(传单R包),还包含时间序列图(dygraphs R包).我知道如何同步不同的dygraphs(https://rstudio.github.io/dygraphs/gallery-synchronization.html),但不知道如何将它同步到传单地图.我的问题是如何最好地将所有图表链接在一起,所以当我在传单地图上选择一个区域或在dygraph时间序列图上选择一段时间时,其他图表都会更新以仅显示过滤后的数据?
有人认为我有一个传单插件,但不知道如何使用R /闪亮来做到这一点?例如,我看到一些传单插件提供了动画包含日期/时间信息的地图的功能(http://apps.socib.es/Leaflet.TimeDimension/examples/).另一个问题是有没有任何文档/示例显示如何使用R闪亮的传单插件?
我认为可以提取从时间序列图(dygraph)中选择的时间/日期,但不确定是否/如何提取R闪亮的传单地图上显示的区域.我的最后一个问题是,我是否可以提取显示传单地图的区域,因此我可以更新时间序列图.
提前感谢任何有关如何使用R闪亮将传单映射与时间序列图(即dygraph)耦合的建议!
在尝试遵循在Rstudio链接https://keras.rstudio.com/index.html上安装Keras和TensorFlow的说明时,我收到以下错误.它是一台运行Windows 7的工作计算机.我不熟悉python,但我相信我已经正确安装了python 3.6(我能够在Spyder IDE中运行简单的python代码).提前感谢您提供有关如何使其正常工作的任何建议.
> install_keras()
Creating r-tensorflow conda environment for TensorFlow installation...
Solving environment: ...working... failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url
<https://repo.continuum.io/pkgs/main/noarch/repodata.json.bz2>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your
way.
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', port=443): Max retries exceeded with url: /pkgs/main/noarch/repodata.json.bz2 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000000000474D860>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))",),)
Error: Error …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用Windows 7创建一个简单的.gif视频.我安装了ImageMagick,它似乎独立工作.这是我尝试运行的以下代码和相应的错误消息.当我运行代码时,ImageMagik程序打开,看起来第一次运行的数据被绘制(见下图).我怀疑问题是Windows和Unix命令之间的差异?也许我需要在ani.options中添加更多内容?任何帮助或建议将不胜感激.谢谢.
添加所需的库
库(动画)
确保转换位于我保存数据的位置
ani.options(convert ='C:/ Program Files/ImageMagick-6.8.9-Q16/convert.exe')ani.options("convert")#检查短手记号是否有效
[1]"C:/ Program Files/ImageMagick-6.8.9-Q16/convert.exe"
创建图表的.gif视频
saveGIF({+ for(i in 1:10)plot(runif(10),ylim = 0:1)+})
执行:"C:/ Program Files/ImageMagick-6.8.9-Q16/convert.exe"-loop 0 -delay 100 Rplot1.png Rplot2.png Rplot3.png Rplot4.png Rplot5.png Rplot6.png Rplot7.png Rplot8. png Rplot9.png Rplot10.png"animation.gif"'C:/ Program'未被识别为内部或外部命令,可运行程序或批处理文件.输出于:animation.gif [1] TRUE警告消息:1:运行命令'C:\ Windows\system32\cmd.exe/c"C:/ Program Files/ImageMagick-6.8.9-Q16/convert.exe" - loop 0 -delay 100 Rplot1.png Rplot2.png Rplot3.png Rplot4.png Rplot5.png Rplot6.png Rplot7.png Rplot8.png Rplot9.png Rplot10.png"animation.gif"'的状态为1 2:在cmd.fun (转换):'"C:/ Program Files/ImageMagick-6.8.9-Q16/convert.exe"-loop 0 -delay 100 Rplot1.png Rplot2.png Rplot3.png Rplot4.png Rplot5.png Rplot6.png Rplot7. png Rplot8.png Rplot9.png Rplot10.png"animation.gif"执行失败,错误代码为1
r ×3
dygraphs ×1
gif ×1
imagemagick ×1
keras ×1
leaflet ×1
python ×1
shiny ×1
tensorflow ×1
windows ×1