Description Usage Arguments Author(s) Examples
This function is specifically designed for the URMC fitness dataset. It compares the averages for one group to the averages in a second group.
1 | compare.plot(x, compare_column, group1, group2, group1.label = "Group 1", group2.label = "Group 2", ...)
|
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. |
Alexis Zavez
1 2 | data(sample.data)
compare.plot(sample.data, sample.data$Day, group1 = "Wednesday", group2 = "Monday")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.