Description Usage Arguments Value
View source: R/plot_lollipop.R
This function takes in data and produces a horizontal lollipop plot by King County HRA The order of these categories can be adjusted by changing the factor levels of the facet variable. Input data needs columns for variable of interest (titled "var") and HRA.
1 2 3 4 5 6 7 8 9 10 11 |
data |
Data with column for variable of interest with "facet" and "facet_col" |
var |
Column name of variable of interest. |
limits |
Y-axis limits. |
title |
Plot title |
x_title |
Title to display along x-axis |
scale_type |
Y-axis scale type: "numeric" or "percent" |
save |
T if user would like to return plot object and save file, F (default) to just return object. |
savename |
File name of map for saving. |
caption |
Figure caption |
Lollipop plot of variable by HRA and SES.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.