autoplot.apd_pca | R Documentation |
Plot the distribution function for pcas
## S3 method for class 'apd_pca' autoplot(object, ...)
object |
An object produced by |
... |
An optional set of |
A ggplot
object that shows the distribution function for each
principal component.
library(ggplot2) library(dplyr) library(modeldata) data(biomass) biomass_ad <- apd_pca(biomass[, 3:8]) autoplot(biomass_ad) # Using selectors in `...` autoplot(biomass_ad, distance) + scale_x_log10() autoplot(biomass_ad, matches("PC[1-2]"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.