plot_signatures | R Documentation |
After mutational signature discovery has been performed, this function
can be used to display the distribution of each mutational signature. The
color_variable
and color_mapping
parameters can be used
to change the default color scheme of the bars.
plot_signatures(
result,
plotly = FALSE,
color_variable = NULL,
color_mapping = NULL,
text_size = 10,
show_x_labels = TRUE,
show_y_labels = TRUE,
same_scale = TRUE,
y_max = NULL,
annotation = NULL,
percent = TRUE
)
result |
A |
plotly |
If |
color_variable |
Name of the column in the variant annotation data.frame
to use for coloring the mutation type bars. The variant annotation data.frame
can be found within the count table of the |
color_mapping |
A character vector used to map items in the
|
text_size |
Size of axis text. Default |
show_x_labels |
If |
show_y_labels |
If |
same_scale |
If |
y_max |
Vector of maximum y-axis limits for each signature. One value
may also be provided to specify a constant y-axis limit for all signatures.
Vector length must be 1 or equivalent to the number of signatures. Default
|
annotation |
Vector of annotations to be displayed in the top right
corner of each signature. Vector length must be equivalent to the number of
signatures. Default |
percent |
If |
Generates a ggplot or plotly object
data(res)
plot_signatures(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.