plotW2Leg {wrGraph} | R Documentation |
x-y plot with 2 legends
Description
This is a modified version of plot
for 2-dimensional data,
allowing to choose symbols and colors of points according to two additional columns of dat
.
Usage
plotW2Leg(
dat,
useCol = c("logp", "slope", "medAbund", "startFr"),
tit = NULL,
subTi = NULL,
subCex = 0.9,
pch = 21:25,
xlim = NULL,
ylim = NULL,
xlab = NULL,
ylab = NULL,
ablines = NULL,
legendloc = "topright",
txtLegend = NULL,
histLoc = "bottomleft",
legHiTi = NULL,
silent = TRUE,
debug = FALSE,
callFrom = NULL
)
Arguments
dat |
(matrix or data.frame) main input |
useCol |
(character or integer) columns form |
tit |
(character) optional custom title |
subTi |
(character) optional custom subtitle |
subCex |
(numeric) cex-like expansion factor for subtitle (see also |
pch |
(integer) symbols to use for plotting (see also |
xlim |
(numeric, length=2) x- axis limits (see also |
ylim |
(numeric, length=2) y- axis limits (see also |
xlab |
(character) custom x-axis label |
ylab |
(character) custom x-axis label |
ablines |
(list) optional horzontal and/or vertical gray dashed guide-lines |
legendloc |
(character) location of legend (of symbols) |
txtLegend |
(character) optional label for legend (of symbols) |
histLoc |
(character) location of histomgram-legend (of 3rd column of |
legHiTi |
(character) optional title for histomgram-legend |
silent |
(logical) suppress messages |
debug |
(logical) additonal messages for debugging |
callFrom |
(character) allows easier tracking of messages produced |
Value
graphical output only
See Also
(standard plots) plot
from the package base
Examples
x1 <- cbind(x=c(2,1:7), y=8:1 +runif(8), grade=rep(1:4,2))
plotW2Leg(x1,useCol=c("x","y","y","grade"))