EMIbar: EMI Bar Graph 1-D

Description Usage Arguments Examples

Description

Creates generic EMI bar graph. Takes a data frame (or data from myTable) to create a 1-D plot. Colors are customizable.

Usage

1
EMIbar(data, colors = EMIcolors(1), dataCols = 1:2, ...)

Arguments

data

a data frame with columns X (bar names), and Count (bar size). Works best with data from the myTable function.

colors

vector of colors with length of 1 or the same length as data.

dataCols

length 2 vector specifying the location of data within the data frame. The first column should have category info, the second should have counts. Default colors are all EMI Blue (EMIcolors(1))

Examples

1
2
3
4
5
6
7
8
df = data.frame(Factor1 = sample(LETTERS[1:4], 100, replace = T),
                Factor2 = sample(LETTERS[25:26], 100, replace = T),
                Numbers = sample(1:100))

# EMIbar
t = myTable(as.table(by(df$Numbers, df$Factor1, mean)))
names(t)
EMIbar(t)

mnblonsky/REMI documentation built on May 23, 2019, 5:06 a.m.