f_pca_plot_components: plot principle components as a dot plot

Description Usage Arguments Value Examples

Description

plot principle components as a dot plot

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 May 27, 2019, 12:11 p.m.