powered by
It plots the canonical solution that is obtained by the function multiUS::cancorPlus.
multiUS::cancorPlus
plotCCA( ccRes, xTitle = "X", yTitle = "Y", inColors = TRUE, scaleLabelsFactor = 1/2, what = "reg", nDigits = 2, mar = c(1, 2, 1, 1) )
It plots the plot.
The output of multiUS::cancorPlus.
The title of the first set of variables.
The title of the second set of variables.
Whether plot should be plotted in colours (TRUE) (default) or in black and white (FALSE).
TRUE
FALSE
Parameter for setting the size of values (default is 1/2). The size of plotted values is proportional to its value to the power of scaleLabelsFactor.
1/2
scaleLabelsFactor
Whether to plot regression coefficients ("reg") (default) or correlations (i.e., canonical structure loadings) ("cor").
"reg"
"cor"
Number of decimal places.
Margins, default is mar = c(1, 2, 1, 1), see graphics::par.
mar = c(1, 2, 1, 1)
graphics::par
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")
Run the code above in your browser using DataLab