plot_variables | R Documentation |
This function plots the variables used in the FRCCA as points in a two-dimensional plane in which the axis are the canonical factor loadings selected by the user.
plot_variables(res.mrcc, i, j, inner_circle_radius = 0.5, text_size = 0.8)
res.mrcc |
List containing a canonical structure provided by the function frcc. |
i |
Canonical Factor Loadings which will be used as the horizontal axis. |
j |
Canonical Factor Loadings which will be used as the vertical axis. |
inner_circle_radius |
Radius of the circle which is used to determine which variables are significant. Only the significant variables will be labeled. |
text_size |
Character expansion factor for the labels of the variables. |
This function just creates the variables 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: Multivariate Normal Data p<-10 q<-10 n<-50 res<-generate_multivariate_normal_sample(p,q,n) X<-res$X Y<-res$Y rownames(X)<-c(1:n) colnames(X)<-c(1:p) colnames(Y)<- c(1:q) my_res<-frcc(X,Y) grDevices::dev.new() plot_variables(my_res,1,2,text_size=1.0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.