View source: R/plot_distribution.R
plot_distribution | R Documentation |
This function is a wrapper of ggplot2::geom_histogram()
, usually used to
check the distribution of game scores or academic scores. If group is assigned, it will
plot the distribution by groups (usually game_name or subject_name).
plot_distribution(data, x = game_score_raw, group = NULL, bins = 50)
data |
Data.frame, the data |
x |
Unquoted expression, colname of the observation value, default game_score_raw |
group |
Formula, indicate the facet variables |
bins |
Numerical, how much bins are used in geom_histogram, default 50 |
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.