r - 如何在 highcharter plot 中设置 xlim 和 ylim 范围?

r - How to set xlim and ylim range in a highcharter plot?

我正在尝试在我的高坐标轴图中设置一个特定范围

 library(highcharter) 
 h <- highchart() %>% 
      hc_title(text = "Scatter chart with size and color") %>% 
      hc_add_series_scatter(mtcars$wt, mtcars$mpg) %>% 
      hc_exporting(enabled = TRUE)
h

当前结果:scatter with range = c(5, 40) at xlim

想要的情节:scatter with range = c(5, 35) at ylim

有没有人有想法?

正如 Pierre Lafortune 评论的那样,答案是:

%>% hc_yAxis(max = 35)