plotAncova {asbio} | R Documentation |
ANCOVA plots are created, potentially with distinct line types and/or symbols and colors for treatments. A legend relating ciphers to treatments is also included.
plotAncova(model, pch = NULL, lty = NULL, col = NULL, leg.loc = "topright", leg.cex = 1, leg.bty = "o", leg.bg = par("bg"), legend.title = NULL,...)
model |
Result from |
pch |
A scalar, or a vector of length n defining symbols for treatments. |
lty |
A scalar, or a vector of length n defining line types for treatments. |
col |
A scalar, or a vector of length n defining color for symbols and lines. |
leg.loc |
Location of the legend. |
leg.cex |
Character expansion from |
leg.bty |
Box type from |
leg.bg |
Background color from |
legend.title |
Legend |
... |
Additional arguments from |
Returns an ANCOVA plot and model coefficients.
Ken Aho
x <- rnorm(20) y <- 3 * x + rnorm(20) cat <- c(rep("A",5),rep("B",5),rep("C",5),rep("D",5)) l <- lm(y ~ x * cat) plotAncova(l, leg.loc = "bottomright")