plot_units | R Documentation |
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
plot_units(X, Y, res.mrcc, i, text_size = 0.8, point_size = 2)
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. |
This function just creates the units plot. It does not return a value.
Raul Cruz-Cano
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.
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.