r - 如何在高图图中设置xlim和ylim范围?

时间:2017-02-08 17:15:24

标签: r plot highcharts r-highcharter

我试图在我的高潮图轴图中设置一个特定的范围

 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

有没有人有想法?

1 个答案:

答案 0 :(得分:4)

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

%>% hc_yAxis(max = 35)