Description Usage Arguments Value

View source: R/misc_functions.R

Display a PCA Plot of the Data

1 |

`mat` |
The data frame on which to perform pca. |

`sub` |
The number of samples in this batch, from left to right in the data frame |

`center` |
a logical value indicating whether the variables should be shifted to be zero centered. The default is TRUE |

`scale` |
a logical value indicating whether the variables should be scaled to have unit variance before the analysis takes place. The default is TRUE |

`plottitle` |
The title to display above your PCA plot. The default is "PCA". |

A PCA plot is displayed

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.