如何将我在GGPLOT中制作的地图图转移到使用ggplotly()函数并添加时间框架交互键的绘图?
我使用ggplot在r中制作了这张地图。现在,我想在Plotly中添加交互式条,以随着时间的推移更改地图。是否可以?我尝试了几次,R
map <- read_sf("map.shp")
data <- read_csv("minimumwage.csv")
data_cleaned <- inner_join(map , minimumwage , by = "States")
g<- ggplot(data = data1) + geom_sf(aes(fill = "wage"))
ggplotly(p = g)
现在不断崩溃,我的原始情节是互动的。我需要的只是添加时间轴互动栏
I made this map in R using ggplot . Now I want to add the interactive bar in plotly that changes the map over time. Is it possible? I tried couple of times and R keeps crashing
map <- read_sf("map.shp")
data <- read_csv("minimumwage.csv")
data_cleaned <- inner_join(map , minimumwage , by = "States")
g<- ggplot(data = data1) + geom_sf(aes(fill = "wage"))
ggplotly(p = g)
Now my original plot is interactive. All I need is to add the timeline interactive bar
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论