Runs a matrix analysis (clustering, kmeans, pca).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | runMatrixAnalysis(
data,
analysis = c("hclust", "pca", "pca-ord", "pca-dim"),
column_w_names_of_multiple_analytes = NULL,
column_w_values_for_multiple_analytes = NULL,
columns_w_values_for_single_analyte = NULL,
columns_w_additional_analyte_info = NULL,
columns_w_sample_ID_info = NULL,
transpose = FALSE,
unknown_sample_ID_info = NULL,
scale_variance = TRUE,
kmeans = c("none", "auto", "elbow", "1", "2", "3", "etc."),
na_replacement = c("none", "mean", "zero", "drop"),
output_format = c("wide", "long"),
...
)
|
data |
The data frame or tibble to analyze |
analysis |
The type of analysis to run. Can be one of: "hclust" (heirarchical clustering), "pca" (principal components analysis), "pca-ord" (principal components analysis ordination plot), or "pca-dim" (principal components scree plot) |
column_w_names_of_multiple_analytes |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.