Description Usage Arguments Value Examples
View source: R/pretty_pca_plot.r
This function takes a PCA object and a dates vector. The dates are processed and split in day, months, and years. The pca is then plotted and points are connected through time, to see the evolution of the lake communities.
1 | pretty_pca_plot(obj, dates, type = "default", ...)
|
obj |
A PCA object computed with prcomp or princomp |
dates |
a vector of dates |
type |
'default' or 'ggplot' to decide which kind of graph you want to do |
... |
optional parameters to be passed to the plot function |
a beautiful plot
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.