View source: R/multivariate_ggvis_ggscreeplot.R

Screeplot for Principal Components

1 | ```
ggscreeplot(pcobj, type = c("pev", "cev", "both"))
``` |

`pcobj` |
an object returned by prcomp() or princomp() |

`type` |
the type of scree plot. 'pev' corresponds proportion of explained variance, i.e. the eigenvalues divided by the trace. 'cev' corresponds to the cumulative proportion of explained variance, i.e. the partial sum of the first k eigenvalues divided by the trace. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.