histDiscrete: Create a histogram from a discrete variable

Description Usage Arguments Value Examples

View source: R/4419_functions.r

Description

A histogram for a discrete variable is basically a bar chart with no space between the bars.

Usage

1

Arguments

x

A character string giving the name of the variable to be plotted.

data

A data frame in which x can be found.

...

Not implemented

Value

A ggplot.

Examples

1
2
3
data(alberta)
alberta$k3c <- ifelse(alberta$k3c > 11, NA, alberta$k3c)
histDiscrete("k3c", alberta)

uwo4419 documentation built on Oct. 23, 2020, 8:08 p.m.