Histogram & Density
Add a histogram or density plots.
e_histogram( e, serie, breaks = "Sturges", name = NULL, legend = TRUE, bar_width = "99%", x_index = 0, y_index = 0, ... ) e_density( e, serie, breaks = "Sturges", name = NULL, legend = TRUE, x_index = 0, y_index = 0, smooth = TRUE, ... ) e_histogram_( e, serie, breaks = "Sturges", name = NULL, legend = TRUE, bar_width = "90%", x_index = 0, y_index = 0, ... ) e_density_( e, serie, breaks = "Sturges", name = NULL, legend = TRUE, x_index = 0, y_index = 0, smooth = TRUE, ... )
e |
An |
serie |
Column name of serie to plot. |
breaks |
Passed to |
name |
name of the serie. |
legend |
Whether to add serie to legend. |
bar_width |
Width of bars. |
x_index |
Indexes of x and y axis. |
y_index |
Indexes of x and y axis. |
... |
Any other option to pass, check See Also section. |
smooth |
Whether to use smoothed lines, passed to |
mtcars %>% e_charts() %>% e_histogram(mpg, name = "histogram") %>% e_density(mpg, areaStyle = list(opacity = .4), smooth = TRUE, name = "density", y_index = 1) %>% e_tooltip(trigger = "axis") # timeline mtcars %>% group_by(cyl) %>% e_charts(timeline = TRUE) %>% e_histogram(mpg, name = "histogram") %>% e_density(mpg, name = "density", y_index = 1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.