disag_hc_plot: Generate a summary demographic plot

Description Usage Arguments Details Functions Examples

View source: R/plot_functions.R

Description

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.

Usage

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)

Arguments

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

Details

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

Functions

Examples

1
2
3
## Not run: disag_hc_plot(data, 'gender', 'User/documents/ex.jpg','Gender',
'xaxislabel')
## End(Not run)

paulmeinz/lrdatapacket documentation built on May 24, 2019, 8:45 p.m.