powered by
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.
plot
dat
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, callFrom = NULL )
(matrix or data.frame) main input
(character or integer) columns form dat: The 1st and 2nd column are used as x- and y-axis
(character) optional custom title
(character) optional custom subtitle
(numeric) cex-like expansion factor for subtitle (see also par)
par
(integer) symbols to use for plotting (see also par), will be associated to 4th column of useCol
useCol
(numeric, length=2) x- axis limits (see also par)
(numeric, length=2) y- axis limits (see also par)
(character) custom x-axis label
(list) optional horzontal and/or vertical gray dashed guide-lines
(character) location of legend (of symbols)
(character) optional label for legend (of symbols)
(character) location of histomgram-legend (of 3rd column of useCol)
(character) optional title for histomgram-legend
(logical) suppress messages
(character) allow easier tracking of message(s) produced
graphical output only
(standard plots) plot from the package base
base
# NOT RUN { 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")) # }
Run the code above in your browser using DataLab