plot_ly轴刻度标签,轴标签,添加图例标题和消除轮廓线

问题描述

我正在尝试使用如下数据结构创建热图。我正在尝试进行简单的更改,例如更改刻度标签以匹配数据。我还想添加标签和图例标签。如果可以的话,将不胜感激。

数据样本:

enter image description here

https://flic.kr/p/2jHhEnB

df <- read.csv("C:\\Users\\\\Documents\\chartdata.csv")
df
h <- as.matrix(df)
h

fig <- plot_ly(
  type = 'contour',z = h,contours = list(
    coloring = 'heatmap'
  )
)
 fig <- fig %>% layout(,title = "Speed heat map of Yellow Head Trail",scene = list(
     xaxis = list(title = "Location"),yaxis = list(title = "Time")
  ))
fig

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)