Description Usage Arguments Value Examples
This function performs the call to mjs_plot
and assumes
data
is a numeric vector. It's intended to save keystrokes
when plotting quick histograms. This function automatically a y
axis label "Frequency" which you can override with a call to
mjs_labs
.
1 |
data |
numeric vector |
bins |
number of bins for the histogram ( |
bar_margin |
space between bars (defaults to |
metricsgraphics object
1 2 3 4 5 6 7 | bimod <- c(rnorm(1000, 0, 1), rnorm(1000, 3, 1))
mjs_plot(bimod) %>% mjs_histogram()
bimod %>% mjs_hist()
mjs_plot(bimod) %>% mjs_histogram(bins=30)
bimod %>% mjs_hist(30)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.