plot_units: Plots the experimental units in the Canonical Variates Space

View source: R/plotsetc.R

plot_unitsR Documentation

Plots the experimental units in the Canonical Variates Space

Description

This function plots the experimental units used in the FRCCA as points in a two-dimensional plane in which the axis are the canonical variates selected by the user

Usage

plot_units(X, Y, res.mrcc, i, text_size = 0.8, point_size = 2)

Arguments

X

numeric matrix (n by p) which contains the observations on the X variables.

Y

numeric matrix (n by p) which contains the observations on the Y variables.

res.mrcc

List containing a canonical structure provided by the function frcc for the dataset X and Y.

i

Canonical Variate which will be used for the axes (X for horizontal and Y for vertical).

text_size

Character expansion factor for the labels of the experimental units.

point_size

Character expansion factor for the point representing the experimental units.

Value

This function just creates the units plot. It does not return a value.

Author(s)

Raul Cruz-Cano

References

Cruz-Cano, R.; Lee, M.L.T.; Fast Regularized Canonical Correlation Analysis, Computational Statistics & Data Analysis, Volume 70, 2014, Pages 88-100, ISSN 0167-9473, https://doi.org/10.1016/j.csda.2013.09.020.

Examples

#Example: NCI-60 micrRNA Data
data("Topoisomerase_II_Inhibitors")
data("microRNA")
my_res <- frcc(t(microRNA),-1*t(Topoisomerase_II_Inhibitors))
for( i in 1:dim(microRNA)[2])
{
  colnames(microRNA)[i]<-substr(colnames(microRNA)[i], 1, 2)
}#end for i
grDevices::dev.new()
plot_units(t(microRNA),-1*t(Topoisomerase_II_Inhibitors),my_res,1,1,text_size=0.01)

FRCC documentation built on Oct. 29, 2022, 5:06 p.m.

Related to plot_units in FRCC...