generate_expt_colors | R Documentation |
In theory this function should be useful in any context when one has a blob of metadata and wants to have a set of colors. Since my taste is utterly terrible, I rely entirely upon RColorBrewer, but also allow one to choose his/her own colors.
generate_expt_colors(
sample_definitions,
cond_column = "condition",
by = "sampleid",
...
)
sample_definitions |
Metadata, presumably containing a 'condition' column. |
cond_column |
Which column in the sample data provides the set of 'conditions' used to define the colors? |
by |
Name the factor of colors according to this column. |
... |
Other arguments like a color palette, etc. |
Colors!
[create_expt()]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.