Javascript 在本地html页面中嵌入本地plotly图

Javascript 在本地html页面中嵌入本地plotly图,javascript,html,r,plotly,google-earth,Javascript,Html,R,Plotly,Google Earth,我使用R中的Plotly库生成了一个交互式图形,另一个使用radarchart包生成了一个交互式图形,然后将它们都插入到本地html页面中,在Google Earth Pro程序中,radarchart显示在属性页面中,但Plotly图形没有显示。。。我不知道为什么,有什么需要帮忙的吗?我花了很多时间寻找解决方案,但都找不到 这是我的绘图数据“DailyData” 下面是代码 R2 <- ggplot()+geom_bar(data=DailyData,aes(x=reorder(Da

我使用R中的Plotly库生成了一个交互式图形,另一个使用radarchart包生成了一个交互式图形,然后将它们都插入到本地html页面中,在Google Earth Pro程序中,radarchart显示在属性页面中,但Plotly图形没有显示。。。我不知道为什么,有什么需要帮忙的吗?我花了很多时间寻找解决方案,但都找不到

这是我的绘图数据“DailyData”

下面是代码

  R2 <- ggplot()+geom_bar(data=DailyData,aes(x=reorder(Day,as.single(row.names(DailyData))),y=No.,group = as.factor(Type),fill=Type),stat = "identity",position = "dodge")+
            labs(x="Day")
    R2 <- ggplotly(R2,tooltip = c("No.","Type"))
    R2name <- paste0(name,"Daily.html")
    saveWidget(R2,R2name) 

R2您可以将HTML代码添加为txt而不是屏幕截图吗?@MaximilianPeters done
  R2 <- ggplot()+geom_bar(data=DailyData,aes(x=reorder(Day,as.single(row.names(DailyData))),y=No.,group = as.factor(Type),fill=Type),stat = "identity",position = "dodge")+
            labs(x="Day")
    R2 <- ggplotly(R2,tooltip = c("No.","Type"))
    R2name <- paste0(name,"Daily.html")
    saveWidget(R2,R2name) 
<iframe src="file:Graphs/Cairo_Assiut(WestRd)Radar.html" width="960" height="500" scrolling="no" seamless="seamless"></iframe>

<iframe src="file:Graphs/Cairo_Assiut(WestRd)Daily.html" width="960" height="500" scrolling="no" seamless="seamless"></iframe>