Compare_Plot_Function: Comparison Barplot Function

Description Usage Arguments Author(s) Examples

Description

This function is specifically designed for the URMC fitness dataset. It compares the averages for one group to the averages in a second group.

Usage

1
compare.plot(x, compare_column, group1, group2, group1.label = "Group 1", group2.label = "Group 2", ...)

Arguments

x

The data frame containting the data

compare_column

The column of the data frame that contains the data that will be compared.

group1

The first comparison group. It should be in the form of a list of character strings.

group2

The second comparison group. It should be in the form of a list of character strings.

group1.label

Legend text for first comparison group. The default is "Group 1".

group2.label

Legend text for second comparison group. The default is "Group 2".

...

This function takes additional arguments for barplot function.

Author(s)

Alexis Zavez

Examples

1
2
data(sample.data)
compare.plot(sample.data, sample.data$Day, group1 = "Wednesday", group2 = "Monday")

azavez/azavezHW6 documentation built on May 11, 2019, 5:16 p.m.