pca_report | R Documentation |
The function can be used in a chunk within a Rmarkdown document/script with results="asis" to render the report.
pca_report( data, design, id_var = "Sample_ID", technical_vars, n_comp = 10, fig_n_comp = n_comp, outliers_threshold = 1.5, outliers_quantile = 0.75, title_level = 3 )
data |
A |
design |
A |
id_var |
A |
technical_vars |
A |
n_comp |
A |
fig_n_comp |
A |
outliers_threshold |
A |
outliers_quantile |
A |
title_level |
A |
A data.frame
.
if (interactive()) { pca_report( data = t(mtcars), design = as.data.table(mtcars, keep.rownames = "Sample_ID"), id_var = "Sample_ID", technical_vars = c("cyl", "gear", "vs"), n_comp = 5, fig_n_comp = 5, outliers_threshold = 3, outliers_quantile = 0.75, title_level = 0 ) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.