Separate and plot data by 2 groups
Plot series of data as membership of 2 different grouping vectors (eg by grp=patient and grp2=age-group).
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 )
dat |
(numeric) main data (may contain |
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 |
pch |
(integer) symbol to mark group-center (see also |
tit |
(character) custom title |
cex |
(numeric) expansion factor for text (see also |
lwd |
(integer) line-width (see also |
lty |
(integer) line-type (see also |
yLab |
(character) custom y-axis label |
cexLab |
(numeric) expansion factor for labels: 1st value for main groups ( |
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 |
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
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]))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.