Usage
corPlot(mydata, type = "default", cluster = TRUE, cols = "default", r.thresh = 0.8,
text.col = c("black", "black"), main = "", auto.text = TRUE)
Arguments
mydata
A data frame which should consist of some numeric columns.
type
type
determines how the data are split
i.e. conditioned, and then plotted. The default is will produce a
single plot using the entire data. Type can be one of the built-in
types as detailed in cutData
e.g. "season"
cluster
Should the data be ordered according to cluster
analysis. If TRUE
hierarchical clustering is applied to the
correlation matrices using hclust
to group similar variables
together. With many variables clustering can greatl
cols
Colours to be used for plotting. Options include
"default", "increment", "heat", "spectral", "hue", "brewer1",
"greyscale" and user defined (see openColours
for more
details).
r.thresh
Values of greater than r.thresh
will be shown
in bold type. This helps to highlight high correlations.
text.col
The colour of the text used to show the correlation
values. The first value controls the colour of negative correlations
and the second positive.
main
The plot title; default is no title.
auto.text
Either TRUE
(default) or FALSE
. If
TRUE
titles and axis labels will automatically try and format
pollutant names and units properly e.g. by subscripting the `2' in
NO2.