R 绘图与绘图:更改 2dHeatMap 的比例值
我使用以下几行在 R 中使用 plotly
绘制热图:
plot_ly(data, x , y) %>% add_trace(type='histogram2dcontour')
然后我获得了以下图
数据实际上看起来像散点图上的那样
如您所见,我在热图上丢失了很多点。我想知道如何手动设置热图颜色的比例,以便每次计数增加 10 而不是 100 时颜色都会发生变化。
否则,是否有更好的方法来绘制和可视化此类数据?
I used the following lines to plot a heatmap with plotly
in R:
plot_ly(data, x , y) %>% add_trace(type='histogram2dcontour')
I then obtained the following plot
The data actually looks like that on a scatter plot
As you can see, I lose a lot of points on the heatmap. I was wondering how I could manually set the scale for the colour of the heatmap for e.g. making it so that the colour changes every time the count increase by 10 instead of 100.
Otherwise, is there a better way to plot and visualize such data?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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