R Plotly - 更改热图中的轴名称
R Plotly - change names of axis in heatmap
我不知道如何更改我的热图中轴的名称。这是我的示例代码:
p <- plot_ly(x = XXX, y = YYY, z = ZZZ, type = "heatmap")
p
而且我不会给我的轴取不同的名字。
这是一个示例(您没有提供可重现的示例),它将为您提供 x/y 标签和标题
x <- list(
title = "x Axis"
)
y <- list(
title = "y Axis"
)
plot_ly(z = volcano, colorscale = "Hot", type = "heatmap") %>% layout(title = "Hello", xaxis = x, yaxis = y)
我不知道如何更改我的热图中轴的名称。这是我的示例代码:
p <- plot_ly(x = XXX, y = YYY, z = ZZZ, type = "heatmap")
p
而且我不会给我的轴取不同的名字。
这是一个示例(您没有提供可重现的示例),它将为您提供 x/y 标签和标题
x <- list(
title = "x Axis"
)
y <- list(
title = "y Axis"
)
plot_ly(z = volcano, colorscale = "Hot", type = "heatmap") %>% layout(title = "Hello", xaxis = x, yaxis = y)