doPlots: Creates histograms for categorical variables

Description Usage Arguments Examples

View source: R/plotting_utilities.R

Description

Creates histograms for categorical variables

Usage

1
doPlots(data_in, fun, ii, ncol = 3)

Arguments

data_in

The input data frame

fun

Plotting function, i.e. plotHist for categorical variables

ii

Indices of the columns to plot

ncol

Number of columns (can't be 1)

Examples

1
2
3
4
5
A <- data.frame(x = rep(c("YES","NO"), 10),
                y = rep(c('R','G','B','F'), 5),
                z = rep(c("YES","NO"), 10),
                t = rep(c('R','G','B','F'), 5))
doPlots(A, fun = plotHist, ii = 1:4, ncol = 2)

alesaccoia/alexr documentation built on Dec. 19, 2021, 12:26 a.m.