draw_barplot: Draw barplot for factor variables.

Description Usage Arguments Value Examples

View source: R/draw_functions.R

Description

For selected counted_col draw barplot to count observations in groups specified by grouping_col.

Usage

1
draw_barplot(dataset, counted_col, grouping_col)

Arguments

dataset

survey dataset

counted_col

column name on X asix

grouping_col

column name used for grouping

Value

barplot with counts for counted_col

Examples

1
2
draw_barplot(survey, "Age", "Ethnicity")
draw_barplot(survey, "Income", "Gender")

jjankowiak/exploreNHANES documentation built on June 9, 2018, 4:47 a.m.