Create the explained variance plot from a PCA
plotVariance(pca)
pca
prcomp object
prcomp
Plot variance as an highchart object
highchart
pca <- prcomp(USArrests) plotVariance(pca)