demographic_distribution: Draw the distribution of demographics in the sample

View source: R/demographic_graphs.R

demographic_distributionR Documentation

Draw the distribution of demographics in the sample

Description

Draw the distribution of demographics in the sample

Usage

demographic_distribution(pass_data, variable, return_ggplot = FALSE)

Arguments

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.

Value

a ggplot2 graph


CDU-data-science-team/experiencesdashboard documentation built on Nov. 30, 2023, 5:57 a.m.