Usage
spider(y,x,data,labels=NULL,rescale=FALSE,center=FALSE,connect=TRUE,overlay=FALSE,
scale=1,ncolors=31,fill=FALSE,main=NULL,...)
radar(x,labels=NULL,center=FALSE,connect=FALSE,scale=1,ncolors=31,fill=FALSE,
add=FALSE,linetyp="solid", main="Radar Plot",...)
Arguments
y
The y variables to plot. Each y is plotted against all the x variables
x
The x variables defining each line. Each y is plotted against all the x variables
data
A correlation matrix from which the x and y variables are selected
labels
Labels (assumed to be colnames of the data matrix) for each x variable
rescale
If TRUE, then rescale the data to have mean 0 and sd = 1. This is used if plotting raw data rather than correlations.
center
if TRUE, then lines originate at the center of the plot, otherwise they start at the mid point.
connect
if TRUE, a spider plot is drawn, if FALSE, just a radar plot
scale
can be used to magnify the plot, to make small values appear larger.
ncolors
if ncolors > 2, then positive correlations are plotted with shades of blue and negative correlations shades of red. This is particularly useful if fill is TRUE. ncolors should be an odd number, so that neutral values are coded as white.
fill
if TRUE, fill the polygons with colors scaled to size of correlation
overlay
If TRUE, plot multiple spiders on one plot, otherwise plot them as separate plots
add
If TRUE, add a new spider diagram to the previous one.
linetyp
see lty in the par options
main
A label or set of labels for the plots
...
Additional parameters can be passed to the underlying graphics call