【发布时间】:2021-04-19 13:53:57
【问题描述】:
我想将悬停文本添加到此地图(来自 ~IntZoneName),但找不到方法。 我使用分散是正确的吗? 我正在使用已与数据框连接的空间文件,然后使用 Plotly 使图形交互。目前悬停只是显示来自 ~CrudeRate7DayPositive 的数据。
plot_ly(map_x,
type = "scatter",
color = ~CrudeRate7DayPositive,
colors = cols,
text = ~IntZoneName,
hoverinfo = "text",
alpha = 0.8) %>%
layout(title = "Crude Rates")
【问题讨论】: