mjs_bar {metricsgraphics} | R Documentation |
metricsgraphics.js bar chart "geom"
Description
This function adds a bar "geom" to a metricsgraphics.js html widget.
Usage
mjs_bar(mjs, bar_height = 20, binned = TRUE)
Arguments
mjs |
metricsgraphics plot object |
bar_height |
width of bars |
binned |
is data already binned? (default: |
Value
metricsgraphics object
Note
metricsgraphics.js currently has "meh" support for bar charts
Examples
data.frame(year=seq(1790, 1970, 10),
uspop=as.numeric(uspop)) %>%
mjs_plot(x=year, y=uspop, width=300, height=400) %>%
mjs_bar()
[Package metricsgraphics version 0.9.0 Index]