Description Usage Arguments Value Examples
Make a weighted boxplot of the distribution of a numeric field in the ACS PUMS data, partitioned by a categorical field.
1 |
data |
ACS PUMS data for housing or population |
x |
(string) name of categorical variable in data to put on x-axis |
y |
(string) name of numeric variable in data for y-axis |
title |
optional plot title |
xlab |
optional x label |
ylab |
optional y label |
ggplot of the weighted distribution of y, partitioned by x
1 2 3 4 | wa.house16$Beds <- clip.column(wa.house16, 'BDSP', 5)
acs.boxplot(wa.house16[!is.na(wa.house16$GRNTP),], 'Beds', 'GRNTP',
title='Rent vs. Bedrooms', xlab='Beds (max. 5)',
ylab='Gross Rent($)')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.