Learn R Programming

QualityMeasure (version 2.0.1)

plotN: Plot sample size distribution across accountable entities

Description

This function creates a histogram of entity sample sizes.

Usage

plotN(n, bin.width = 10)

Value

A ggplot figure

Arguments

n

vector of sample sizes

bin.width

width of bins; default is 10

Author

Kenneth Nieser (nieser@stanford.edu)

Examples

Run this code
# plot sample sizes from colonoscopy dataset
plotN(colonoscopy$n)

# plot sample sizes from psychiatric readmissions dataset
plotN(psychreadmission$n, bin.width = 100)

Run the code above in your browser using DataLab