Display a heatmap of factor loadings (note that this function requires ggplot2 package to be installed)
1 2 3 | plotLoadingsHeat(model, xlabel=NA, ylabel=NA,
color=c("#053061", "#2166AC", "#4393C3", "#92C5DE", "#D1E5F0", "#F7F7F7",
"#FDDBC7", "#F4A582", "#D6604D", "#B2182B", "#67001F"), sorting=NA)
|
model |
an sbfac model object |
xlabel |
x-axis label |
ylabel |
y-axis label |
color |
character vector of colors |
sorting |
a permutaion of 1:P (where P is the number of variables) providing sort order for the rows of the loadings matrix |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.