我在R中创建了一个MULTIPLE DyGraph(其中10个),我想将它们嵌入到HTML页面中(我使用<iframe id="iframe"
完成 - 也许是最简单的方法)并从我的DROPBOX(主要问题)发布这些。我试过Rdrop2但是无法理解。任何人都可以帮忙??`
R CODE HERE
dygraph(cbind1, main = "General and Acute Bed Capacity") %>%
dySeries("East_and_North_Hertfordshire", axis = 'y', strokeWidth = 2, strokePattern = "dotted" ) %>%
dySeries("Hertfordshire_Community", axis = 'y', strokeWidth = 2, strokePattern = "dotdash") %>%
dySeries("Luton_and_Dunstable", axis = 'y', strokeWidth = 2, strokePattern = 3:7) %>%
dySeries("West_Hertfordshire", axis = 'y', strokeWidth = 2, strokePattern = "dashed") %>%
dySeries("Overall_Bed_Capacity", axis = 'y2', strokeWidth = 2, fillGraph = TRUE) %>%
dyAxis("y", label = "Individual Trust - Bed Capacity", c(100, 1200)) %>%
dyAxis("y2", label = "Health Economy - Bed Capacity", independentTicks = TRUE, , valueRange = c(1500, 2600)) %>%
dyAxis("x", label = "Data source: Quarterly Bed Availability and Occupancy www.england.nhs.uk") %>%
dyLegend(show = "always", labelsSeparateLines = TRUE, hideOnMouseOut = TRUE, width = 250)%>%
dyOptions(fillAlpha = 0.3, digitsAfterDecimal = 0, colors = c('darkorange', 'magenta', 'darkred', 'yellowgreen','steelblue'), drawPoints = TRUE, pointSize = 3, drawGrid = FALSE)
HTML CODE(部分)
<iframe id="iframe" width=1300 height=520 src="file:///C:/Users/Owner/Dropbox/NHS.htm" style="border:5px dotted red"></iframe>
答案 0 :(得分:0)
谢谢大家的回答。我找到了通过谷歌驱动器来管理我的DyGraph博客文章的方法。我觉得Dropbox的Rdrop2功能对我帮助不大。