View source: R/demographic_graphs.R
demographic_distribution | R Documentation |
Draw the distribution of demographics in the sample
demographic_distribution(pass_data, variable, return_ggplot = FALSE)
pass_data |
A dataframe, filtered to unique individuals |
variable |
String. Name of variable - e.g. "age", "gender", "ethnicity" |
return_ggplot |
logical if the plot should be returned as a ggplot or plotly object. |
a ggplot2 graph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.