Description Usage Arguments Value See Also Examples
View source: R/utility_funcs.R
Defining sample order internally
1 2 3 4 5 6 7 8 9 | define_sample_order(
order_col,
sample_annotation,
facet_col,
batch_col,
df_long,
sample_id_col,
color_by_batch
)
|
order_col |
column in |
sample_annotation |
data frame with:
.
See |
facet_col |
column in |
batch_col |
column in |
df_long |
data frame where each row is a single feature in a single
sample. It minimally has a |
sample_id_col |
name of the column in |
color_by_batch |
(logical) whether to color points and connecting lines
by batch factor as defined by |
list of two items: order_col
new name and new df_long
plot_sample_mean_or_boxplot, feature_level_diagnostics
1 2 3 4 5 6 | sample_order = define_sample_order(order_col = 'order',
sample_annotation = example_sample_annotation,
facet_col = NULL, batch_col = 'MS_batch', df_long = example_proteome,
sample_id_col = 'FullRunName', color_by_batch = TRUE)
new_order_col = sample_order$order_col
df_long = sample_order$df_long
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.