sort_tomic | R Documentation |
Sort a dataset's features or samples
sort_tomic(
tomic,
sort_type,
sort_table,
sort_variables = NULL,
value_var = NULL
)
tomic |
Either a |
sort_type |
|
sort_table |
samples or features |
sort_variables |
A set of attributes in sort_table to sort with in
|
value_var |
An abundance value to use with |
sort_tomic
supports the reordering of features or samples using
either hierarchical clustering or based on the levels of other variables.
Sorting occurs by turning either the feature or sample primary key
into a factor whose levels reflect the sort.
A tomic
object where feature or sample primary keys have
been turned into a factor reflecting how they are sorted.
library(dplyr)
sort_tomic(brauer_2008_triple,
sort_type = "arrange", sort_table = "samples",
sort_variables = c("nutrient", "DR")
) %>%
sort_tomic(
sort_type = "hclust",
sort_table = "features",
value_var = "expression"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.