Skip to contents

Parameters used to choose what to plot and how. These parameters are given to plot.SCGLR and pairs.SCGLR.

Details

Parameter name can be abbreviated (e.g. pred.col will be understood as predictors.color).
Options can be set globally using options("plot.SCGLR"). It will then provide default values that can be further overriden by giving explicit parameter value.

parameter nametype (default value). Description.
titlestring (NULL). Main title of plot (override built-in).
labels.autological (TRUE). Should covariate or predictor labels be aligned with arrows.
labels.offsetnumeric (0.01). Offset by which labels should be moved from tip of arrows.
labels.sizenumeric (1). Relative size for labels. Use it to globally alter label size.
expandnumeric (1). Expand factor for windows size. Use it for example to make room for clipped labels.
thresholdnumeric. All covariates and/or predictors whose sum of square correlations with the two components of the plane lower than this threshold will be ignored.
observationslogical (FALSE). Should we draw observations.
observations.sizenumeric (1). Point size.
observations.colorcharacter ("black"). Point color.
observations.alphanumeric (1). Point transparency.
observations.factorlogical (FALSE). Paint observations according to factor (specify factor).
predictorslogical or array of characters or comma separated string (FALSE). Should we draw predictors and optionally which one (TRUE means all).
predictors.colorstring ("red"). Base color used to draw predictors.
predictors.alphanumeric (1). Overall transparency for predictors (0 is transparent, 1 is opaque).
predictors.arrowslogical (TRUE). Should we draw arrows for predictors.
predictors.arrows.colorstring (predictors.color). Specific color for predictor arrows.
predictors.arrows.alphanumeric (predictors.alpha). Transparency for predictor arrows.
predictors.labelslogical (TRUE). Should we draw labels for predictors.
predictors.labels.colorstring (predictors.color). Specific color for predictor labels.
predictors.labels.alphanumeric (predictors.alpha). Transparency for predictor labels.
predictors.labels.sizenumeric (labels.size). Specific size for predictor labels.
predictors.labels.autological (labels.auto). Should predictor labels be aligned with arrows.
covariateslogical or array of characters or comma separated string (TRUE). Should we draw covariates and optionally which one (TRUE means all).
covariates.colorstring ("black"). Base color used to draw covariates.
covariates.alphanumeric (1). Overall transparency for covariates (0 is transparent, 1 is opaque).
covariates.arrowslogical (TRUE). Should we draw arrows for covariates.
covariates.arrows.colorstring (covariates.color). Specific color for covariate arrows.
covariates.arrows.alphanumeric (covariates.alpha). Transparency for covariate arrows.
covariates.labelslogical (TRUE). Should we draw labels for predictors.
covariates.labels.colorstring (covariates.color). Specific color for predictor labels.
covariates.labels.alphanumeric (covariates.alpha). Transparency for covariate labels.
covariates.labels.sizenumeric (labels.size). Specific size for covariate labels.
covariates.labels.autological (labels.auto). Should covariate labels be aligned with arrows.
factorlogical or character (FALSE). Should we draw a factor chosen among additionnal variables (TRUE mean first one).
factor.pointslogical (TRUE). Should symbol be drawn for factors.
factor.points.sizenumeric (4). Symbol size.
factor.points.shapenumeric (13). Point shape.
factor.labelslogical (TRUE). Should factor labels be drawn.
factor.labels.colorstring ("black"). Color used to draw labels.
factor.labels.sizenumeric (labels.size). Specific size for factor labels.

Examples

if (FALSE) {
# setting parameters
plot(genus.scglr)
plot(genus.scglr, covariates=c("evi_1","pluvio_11"))
plot(genus.scglr, covariates="evi_1,pluvio_11")
plot(genus.scglr, predictors=TRUE)
plot(genus.scglr, predictors=TRUE, pred.arrows=FALSE)

# setting global style
options(plot.SCGLR=list(predictors=TRUE, pred.arrows=FALSE))
plot(genus.scglr)

# setting custom style
myStyle <- list(predictors=TRUE, pred.arrows=FALSE)
plot(genus.scglr, style=myStyle)
}