plotW2Leg: x-y plot with 2 legends

Description Usage Arguments Value See Also Examples

View source: R/plotW2Leg.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
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
)

Arguments

dat

(matrix or data.frame) main input

useCol

(character or integer) columns form dat: The 1st and 2nd column are used as x- and y-axis

tit

(character) optional custom title

subTi

(character) optional custom subtitle

subCex

(numeric) cex-like expansion factor for subtitle (see also par)

pch

(integer) symbols to use for plotting (see also par), will be associated to 4th column of useCol

xlim

(numeric, length=2) x- axis limits (see also par)

ylim

(numeric, length=2) y- axis limits (see also par)

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 useCol)

legHiTi

(character) optional title for histomgram-legend

silent

(logical) suppress messages

callFrom

(character) allow easier tracking of message(s) produced

Value

graphical output only

See Also

(standard plots) plot from the package base

Examples

1
2
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"))

wrGraph documentation built on April 12, 2021, 1:07 a.m.