plotBy2Groups: Separate and plot data by 2 groups

Description Usage Arguments Value See Also Examples

View source: R/plotBy2Groups.R

Description

Plot series of data as membership of 2 different grouping vectors (eg by grp=patient and grp2=age-group).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
plotBy2Groups(
  dat,
  grp,
  grp2 = NULL,
  col = NULL,
  pch = NULL,
  tit = NULL,
  cex = 2,
  lwd = 0.5,
  lty = 2,
  yLab = NULL,
  cexLab = NULL,
  sepLines = FALSE,
  silent = FALSE,
  callFrom = NULL
)

Arguments

dat

(numeric) main data (may contain NA)

grp

(character or factor) grouping of columns of 'dat', eg replicate association

grp2

(character or factor) aadditional/secondary grouping of columns of 'dat'

col

(character or integer) use custom colors, see also par

pch

(integer) symbol to mark group-center (see also par)

tit

(character) custom title

cex

(numeric) expansion factor for text (see also par)

lwd

(integer) line-width (see also par)

lty

(integer) line-type (see also par)

yLab

(character) custom y-axis label

cexLab

(numeric) expansion factor for labels: 1st value for main groups (grp, eg genotypes), 2nd for detailed text (grp2, eg animal IDs) (see also par)

sepLines

(logical) optional drawing of horizontal lines aiming to separate groups (in analogy to support vectors)

silent

(logical) suppress messages

callFrom

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

Value

list with $annot, $abund for initial/raw abundance values and $quant with final normalized quantitations, or returns data.frame with annot and quant if separateAnnot=FALSE

See Also

read.table, normalizeThis)

Examples

1
2
3
set.seed(2020); rand1 <- round(runif(12),2) +rep(1:3,each=4)
plotBy2Groups(rand1,gl(2,6,labels=LETTERS[5:6]),gl(4,3,labels=letters[1:4]))
 

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