plot_het_barplot | R Documentation |
Plot variation bargraph
plot_het_barplot(
df2,
title = "",
subtitle = "",
pos = "stack",
var_colors = NULL,
font_size = 20,
out_dir = ".",
save.to.file = T
)
df2 |
A long format data frame with 4 columns: 1) group (group of bars on x), 2) ID (individual bars on x), 3) variable (samples within each bar), 4) value. |
title |
Plot title and part of file name. |
subtitle |
Plot subtitle. |
pos |
How bars should be stacked. Either "fill" (relative ratio, 100% bar) or "stack". See position parameter in |
var_colors |
A named vector with colors as values and annotations/groups as names. |
font_size |
The size of axis title on plots. The size of plot subtitle and caption is font_size / 2. The size of legend text and x axis text is font_size / 3 and font_size / 1.5. |
out_dir |
The output directory where the plot will be saved, default is current working directory. |
save.to.file |
If TRUE, save plot to file in out_dir. If FALSE, print to panel. |
Plot object if save.to.file is FALSE.
group ID variable value 1 low 1_21043 CD3 273.2400 2 low 1_36312 CD3 700.2100 3 low 1_37265 CD3 931.1133 4 low 1_39924 CD3 1503.2325
Other plotting:
plot_corrplot()
,
plot_corrplotgg()
,
plot_discrete_barplot()
,
plot_heatmap()
,
plot_indiv_boxplot()
,
plot_indiv_corrscatt()
,
plot_indiv_paired()
,
plot_overview_boxplot()
,
plot_overview_corr_scatt()
,
plot_profile_barplot()
,
run_corrplot_analysis()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.