View source: R/violin_generator.R
violin_generator | R Documentation |
violin_generator
will pull metagene information from AGED
results to plot expression from each sample for each metagene
violin_generator( aged_results, data, batch, batch_order = names(table(batch)), var_axis = "treatment", clv = 0, transformation = 0, blind = TRUE, nrow = 2, scales_free = "fixed", beeswarm_size = 1, beeswarm_color = "black" )
aged_results |
The results of a successful call to |
data |
The original data that was plugged into the initial call of |
batch |
A string vector representation of size |
batch_order |
A string vector representation that details the order in which the samples should be displayed on the violin plot and legend. This vector should be of size |
var_axis |
A string representing the desired value to be printed on the axis representing the categorization/batch set by |
clv |
A numerical value |
transformation |
A numerical value that determines whether or not a log or VST transformation should be done on the original dataset. A value of 0 indicates no transformation, a value of 1 indicates a log transformation using log1p, a value of 2 indicates a VST transformation using varianceStabilizingTransformation If this argument is used, it should be "0", "1" or "2" only. Any other value will assume no transformation. For FaStaNMF, untransformed data should be log-transformed or VST-transformed. |
blind |
If a VST is to be done, this boolean value determines whether it is blind or not. |
nrow |
The number of violin plots that should be in each row |
scales_free |
A character string indicating the preference for scales for the violin plots. This argument should take one of the following four values: "fixed", "free", "free_x", "free_y". |
beeswarm_size |
A numerical value indicating the desired size for the beeswarm points |
beeswarm_color |
A character string inidcating the desired color for the beeswarm points |
Returns a object of type 'list' produced by the ggplot2 package that is ready to be plotted
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.