EMIbarMulti: EMI Bar Graph 2-D

Description Usage Arguments Examples

Description

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

Usage

1

Arguments

data

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

colors

vector of colors with length of 1 or the same length as the number of Fill options. Default colors are all EMI Blue (EMIcolors(1))

...

parameters passed to geom_bar

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))

# EMIbarMulti
t = bydf(df$Numbers, list(df$Factor1, df$Factor2), mean)
names(t) = c('X', 'Fill', 'Count')
EMIbarMulti(t)

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