plotCCA | R Documentation |
Plot the canonical solution produced by multiUS::cancorPlus
.
You can display either regression coefficients (canonical weights) or canonical
structure correlations for the first show
canonical dimensions, with
optional color-coding by sign and magnitude.
plotCCA(
ccRes,
xTitle = "X",
yTitle = "Y",
inColors = TRUE,
show = NULL,
scaleLabelsFactor = 1/2,
what = "reg",
nDigits = 2,
mar = c(1, 2, 1, 1),
gapLeft = 0,
customNames = NULL
)
ccRes |
The output of |
xTitle |
Title for the first (X) set of variables. |
yTitle |
Title for the second (Y) set of variables. |
inColors |
Logical; plot values in color ( |
show |
Integer; how many canonical dimensions to display. Defaults to
|
scaleLabelsFactor |
Numeric scaling exponent for the printed coefficients
(default |
what |
What to plot: regression coefficients |
nDigits |
Integer; number of decimal places shown for printed values. |
mar |
Numeric vector of plot margins; passed to |
gapLeft |
Integer; number of empty column gaps to insert before the first
canonical dimension (useful for aligning multiple panels). Default |
customNames |
Optional named character vector for relabeling variables.
Names should match |
Draws the plot.
Marjan Cugmas
tmp<-cancorPlus(x = mtcars[, c(1,2,3)], y = mtcars[, c(4,5, 6)], useCCApackage = TRUE)
plotCCA(tmp, scaleLabelsFactor = 1/2, what = "cor", customNames = c("cyl" = "Cylinders"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.