Description Usage Arguments Details Functions Examples
View source: R/plot_functions.R
Takes a lrdataset object (generated from the query_data function) and produces a plot for the past five years disaggregated by a demographic variable. disag_hc_plot produces a disaggregated demographic plot, disag_scs_plot produces a disaggregated success plot, and plot_headcounts produces a headcount (duplicated or unduplicated) plot.
1 2 3 4 5 | disag_hc_plot(data, demo_col, path, x_axis_lab = "", title = "")
disag_scs_plot(data, demo_col, path, x_axis_lab = "", title = "")
plot_headcounts(data, path, title = "", undup = TRUE)
|
data |
A lrdataset object generated from the query_gen function. |
demo_col |
The name of a demographic variable in the lrdataset object. This demographic variable will be used to disaggregate. |
path |
A file path to where you would like to save your plot. The filepath must end in the filename (e.g. 'path/filename.jpg') |
x_axis_lab |
The x-axis label. |
title |
The plot title |
You must use a lrdataset object with this function. The purpose of this restriction is to ensure that the dataset has only standard data and column names
disag_scs_plot
: Produce a Success Rate Plot
plot_headcounts
: Produce a Headcount Plot
1 2 3 | ## Not run: disag_hc_plot(data, 'gender', 'User/documents/ex.jpg','Gender',
'xaxislabel')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.