[英]How to set zlim values in R-highcharter plots
How does one control the z-axis for highcharter matrix plots in R? 如何控制R中高字符矩阵图的z轴?
library(highcharter)
data(volcano)
hchart(volcano/2, zlim=c(0,200))
If you mean the color-axis, then this is a way to control it: 如果您指的是色轴,那么这是一种控制它的方法:
library(highcharter)
data(volcano)
hc <- hchart(volcano/2) %>%
hc_colorAxis(min = 0, max = 200)
hc
Basically you create a highcharter object using the function hchart then using the function hc_colorAxis you can modify the created object and get a new object in return. 基本上,您可以使用hchart函数创建一个highcharter对象,然后使用hc_colorAxis函数可以修改创建的对象并获得一个新的对象。
For other nice examples of highcharter functions please see: http://jkunst.com/highcharter/highcharts-api.html 有关highcharter函数的其他示例,请访问: http ://jkunst.com/highcharter/highcharts-api.html
And for info about the forward-pipe operator %>% you can see the documentation of package magrittr: https://github.com/tidyverse/magrittr . 有关前向管道运算符%>%的信息,请参阅magrittr软件包的文档: https : //github.com/tidyverse/magrittr 。 But magrittr is not needed here if you are using highcharter.
但是,如果您正在使用highcharter,则在这里不需要magrittr。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.