sample_bar_plot.RdThis function will generate plots similar to those in Figure 3a-c of Tasic, et al. (2016).
sample_bar_plot(
data,
anno,
genes,
grouping,
group_order = NULL,
log_scale = FALSE,
font_size = 7,
label_height = 25,
label_type = "angle",
max_width = 10,
bg_color = "#ADCFE0",
return_type = "plot"
)A data frame containing gene expression values. The first column should be sample_name
Sample annotations. The first column should be sample_name, and each annotation should have \_id, \_label, and \_color columns
A character vector containing gene symbols to be plotted.
A character string specifying the desc base (column) that should be used to group cells.
Optional: Explicit specification of group order by supplying a vector of group_ids.
Logical , determines if data is log scaled before plotting. Default = FALSE.
numeric object, the font size (in pts) used to make the plot.
numeric object, Percent of the plot height that should be used for the labels (0 to 100). Default is 25.
Label shape, "angle" or "square"
numeric object, percent of plot width that should be used for maximum expression values (0 to 100). Default is 10.
plot background color. Default is a light blue ("#ADCFE0")
What values to return - can be "plot", "data", or "both". Default is "plot".
a ggplot2 plot object