R - How to set the range of xlim and ylim to the plot at high speed?

I am trying to set a certain range in my top shape graph

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 

Current result: scatter with range = c (5, 40) in xlim

Required plot: scatter with range = c (5, 35) in ylim

Does anyone have any ideas?

+5
source share
1 answer

As Pierre Lafortun commented, the answer is:

 %>% hc_yAxis(max = 35) 
+1
source

Source: https://habr.com/ru/post/1263979/


All Articles