我正在尝试更改绘图图中悬停信息框的字体和不透明度(使用 R)。我使用了以下代码,但无法弄清楚如何更改悬停框的字体或不透明度,如果这可能的话?
plotC <- plot_ly(tg, x = ~FINPERCH, y = ~JourneyTime, type = 'scatter', mode = 'lines',color = ~PeakDirection, colors=pal, linetype = ~PeakDirection,height = 500, width = 1200,
hoverinfo= 'text', text = ~paste("<b>Period: </b>", FINPERCH,'<br><b>Direction / Peak :</b>', PeakDirection,'<br><b>Average Journey Time:</b>',JourneyTime,'mins'))%>%
我不想向图表本身添加任何注释。我只想设置悬停的字体和不透明度。
任何建议将不胜感激。
谢谢