Description Usage Arguments Value Examples
View source: R/plot_functions.R
Wrapper for enhanced_barplot
1 2 3 4 5 |
in_exposures_df |
Numerical data frame encoding the exposures |
in_signatures_ind_df |
A data frame containing meta information about the signatures. If NULL, the colour information for the signatures is taken from a rainbow palette. |
in_subgroups_df |
A data frame indicating which PID (patient or sample identifyier) belongs to which subgroup. If NULL, it is assumed that all PIDs belong to one common subgroup. The colour coding for the default subgroup is red. |
in_sum_ind |
Index vector influencing the order in which the PIDs are going to be displayed |
in_subgroups.field |
String indicating the column name in |
in_title |
Title for the plot to be created. |
in_labels |
Flag, if |
in_show_subgroups |
Flag, if |
ylab |
Label of the y-axis on the plot to be generate |
in_barplot_borders |
Whether or not to show border lines in barplot |
in_column_anno_borders |
Whether or not to draw separating lines between the fields in the annotation |
The generated barplot - a ggplot2 plot
1 2 3 4 5 | data(lymphoma_cohort_LCD_results)
exposures_barplot(lymphoma_Nature2013_COSMIC_cutoff_exposures_df,
chosen_signatures_indices_df,
COSMIC_subgroups_df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.