pltSplomT {cwhplot} | R Documentation |
pltHist
plots histograms of the columns of a data frame or
matrix, in a rectangular fashion.
pltSplomT
plots a scatterplot matrix analogous to pairs
,
with histograms or density estimation in the diagonal, correlations in
scaled font, and scatterplots in the lower diagonal, with smoothing in
both directions, with title and time stamp.
pltHist(data,rows=round(sqrt(ncol(data))),cols=ceiling(ncol(data)/rows)) pltSplomT(data, mainL = deparse(substitute(data)), xlabL = "", hist = c("h", "d", "b"), adjust = 1, hist.col = trellis.par.get("strip.background")$col[5], cex.diag = 1, h.diag=0.4, colYonX = "red", colXonY = "blue", ...)
data |
Matrix or data frame containing data, varibles in columns |
mainL |
Label on top |
xlabL |
Label for x axis |
... |
Parameters passed on to upper.panel,lower.panel,diag.panel |
rows, cols |
Number of rows and columns for output figures like in
mfreg |
hist |
"h" = histogram, "d" = density curve, "b" = both |
adjust |
factor to adjust smoothing window for density curve |
hist.col |
colour for the bars of the histograms |
cex.diag |
correction factor for font height of correlations and names in the diagonal |
h.diag |
placement of the variable name in the diagonal panel, =0 means on the lower border, =0.5 in the middle between lower and upper border |
colYonX, colXonY |
colour of smoothing lines, y on x and x on y |
Are called for their side effect to produce a plot.
Uses splom
in package "lattice",
datetime in "CWHplot".
Christian W. Hoffmann, christian.hoffmann@wsl.ch, http://www.wsl.ch/staff/christian.hoffmann with the assistance of Deepayan Sarkar deepayan@cs.wisc.edu.
# see also ## Not run: data <- as.data.frame(matrix(rnorm(500),nrow=100,ncol=5)) colnames(data)<-letters[1:5] pltSplomT(data,mainL="",hist="d",adjust=1.0,hist.col="green") pltSplomT(data,mainL="",hist="b",adjust=0.4,cex.diag = 1.9) pltHist(data) ## End(Not run)