Description Usage Arguments Examples
View source: R/plot.err.two.factor.R
Plot group data in the background and subgroups in the foreground with mean+/-sterr
1 2 3 4 5 6 7 | ## S3 method for class 'err.two.factor'
plot(data, group1, group2, rect.width = c(-0.3, 0.3),
at = FALSE, colG1 = "grey", colG2 = "black", err.bars = "sterr",
cex = 2, shading = FALSE, xlab = "", ylab = "means", length = 0.1,
lwd = 1, main = "", las.x = 1, las.y = 2, xaxt = T,
legend.pos = "topright", cex.yaxis = 1, cex.xaxis = 1, yscale = c(1,
1))
|
data |
a numeric vector containing the data to plot. |
group1 |
vector containing the (background) group information for data. |
group2 |
vector containing the sub-group information for data. |
rect.width |
width of the rectangle of group1 |
at |
optional vector to arrange the position of the data points on the x-axis. Must be integer. |
colG1 |
vector defining the colors for group1. Must have the same length as number of groups. |
colG2 |
vector defining the colors for group2. Must have the same length as number of groups. |
err.bars |
error bars show standard error ("sterr") or standard deviation ("sd"). |
cex |
defines the size of the dots (means of group2). |
shading |
intensity (between 1 and 99) of overlay of the background (group1) with a transparent white layer (default FALSE) |
xlab |
label for x-axis. |
ylab |
label for y-axis. |
length |
defines the length of the arrow heads of the error bars |
lwd |
line width of mean marker (group1) and the error bars (group2). |
main |
title of the plot |
las.x |
text orientation of the x-axis labels. |
las.y |
text orientation of the y-axis labels. |
xaxt |
add x-axis if TRUE |
legend.pos |
postion of legend (for group2) |
cex.yaxis |
scaling for y-axis labels |
cex.xaxis |
scaling for x-axis labels |
yscale |
vector of length two to scale the ylim's upper and lower limit |
1 | plot.err.two.factor(dat$V, dat$Gr.navn, dat$feed, colG1=cols[3:1], colG2 = cols[6:4], lwd=3, shading=30, at=c(3,2,1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.