f_pca_plot_components: plot principle components as a dot plot

Usage Arguments Value Examples

View source: R/f_pca.R

Usage

1
2
f_pca_plot_components(pca_ls, x_axis = "PC1", y_axis = "PC2",
  group = NULL)

Arguments

pca_ls

list created by f_pca()

x_axis

character vector, Default: 'PC1'

y_axis

character vector, Default: 'PC2'

group

character vector denoting the grouping variable, determines dot colour, Default: NULL

Value

htmltools taglist containing a plotly graph and tow DT datatables will only show if printed in a rmarkdown document

Examples

1
2
3
4
5
6
7
## Not run: 
tagls = f_clean_data(mtcars) %>%
  f_boxcox() %>%
  f_pca() %>%
  f_pca_plot_components(group = 'cyl')

## End(Not run)

erblast/oetteR documentation built on June 13, 2018, 9:05 a.m.