Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

251
Views
How to increase number of breaks on x axis in echarts4r plot?

I am making a simple histogram in echarts4r, but I am struggling to override the default x axis labels. For example in the plot below, I would like to have a label at every 3rd, instead of intervals of 5.

library(echarts4r)
  mtcars |>
    e_charts() |>
    e_histogram(mpg, name = "histogram",  breaks =seq(0,36,3)) 
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You could set the interval between ticks as well as the min and max values using e_x_axis like so:

See also the docs for more options.

library(echarts4r)
mtcars |>
  e_charts() |>
  e_histogram(mpg, name = "histogram",  breaks = seq(0,36,3)) |>
  e_x_axis(interval = 3, min = 3, max = 36)

enter image description here

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!