Draws multiple visualizations of each cluster, creating a separate file for each cluster.
1 2 | visualize_clusters(data, features, clusters, min_size, rt_window, name_col,
mz_col, rt_col, file_path)
|
data |
data frame with the abundances of features, with features as columns |
features |
data frame with feature information, fData(object) |
clusters |
a list of clusters as returned by find_clusters |
min_size |
the minimum number of features a cluster needs to have to be plotted |
rt_window |
numeric, the retention time window to use in linking features. NOTE you need to use the same unit as in the retention time column |
name_col |
character, name of the column in features that contains feature names |
mz_col |
character, name of the column in features that contains mass-to-charge ratios |
rt_col |
character, name of the column in features that contains retention times |
file_path |
the prefix to the files to be plotted |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.