ch.stripPlotByGrp | R Documentation |
This function plots a strip chart by groups.
ch.stripPlotByGrp(
data,
xCol,
xSortColBy,
grpCols = NULL,
grpLgndNames = NULL,
filename = NULL,
lgndPlacement = "topright",
cex1 = 1,
cexLegend = 0.75,
ylim = c(-1, 1),
yLab = NA,
pch = 1,
las = 2,
parOp = NULL,
...
)
data |
a dataframe. |
xCol |
a string the specifies the column name in "data" that contains the variable for the xColumn. |
xSortColBy |
a string the specifies the column name in "data" that contains the variable for to sort the xColumn by. |
grpCols |
a vector of strings the specifies the column names in "data" that contain the DVs for each group. The order is this vector matters, so sort them in the order you want them graphed (the colors will be relevant). This function depends on a "wide" format. So, each level of each group is in a separate column. DEFAULT = NULL |
grpLgndNames |
a vector of strings the specifies the names you want each group to be called in the legend. The order is this vector matters, so sort them in the same order as grpCols. |
filename |
the filename (pdf) to save the figure. DEFAULT = NULL (file not saved) |
lgndPlacement |
a string that specified the placement of the legend: "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right" and "center". DEFAULT = "bottomright" |
cex1 |
the relative font size for the y-axis label. DEFAULT = 1. |
cexLegend |
the relative font size for the legend. DEFAULT = .75. |
ylim |
the limits of the y axis. DEFAULT = c(-1,1). |
yLab |
y axis label. DEFAULT = NA. |
pch |
see par for more info. DEFAULT = 1. |
las |
see par for more info. DEFAULT = 2. |
parOp |
the parameter list to enter into par. DEFAULT = NULL |
.
ch.stripPlotByGrp (overlapData, "probe", "meanDO", c("g1", "g2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.