Learn R Programming

multiUS (version 1.2.3)

plotCCA: Plot a solution of canonical correlations

Description

It plots the canonical solution that is obtained by the function multiUS::cancorPlus.

Usage

plotCCA(
  ccRes,
  xTitle = "X",
  yTitle = "Y",
  inColors = TRUE,
  scaleLabelsFactor = 1/2,
  what = "reg",
  nDigits = 2,
  mar = c(1, 2, 1, 1)
)

Value

It plots the plot.

Arguments

ccRes

The output of multiUS::cancorPlus.

xTitle

The title of the first set of variables.

yTitle

The title of the second set of variables.

inColors

Whether plot should be plotted in colours (TRUE) (default) or in black and white (FALSE).

scaleLabelsFactor

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.

what

Whether to plot regression coefficients ("reg") (default) or correlations (i.e., canonical structure loadings) ("cor").

nDigits

Number of decimal places.

mar

Margins, default is mar = c(1, 2, 1, 1), see graphics::par.

Author

Marjan Cugmas

Examples

Run this code
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