hba_subregions_plot: hba_subregions_plot

Description Usage Arguments Value Examples

View source: R/hbaplot.R

Description

Plot gene expression values for each structure in each donor. This function requires the hbadata package (https://github.com/AllenInstitute/hbadata), and is a thin wrapper around a modified version of WGCNA's verboseBarplot

Usage

1
2
3
4
5
6
7
hba_subregions_plot(
  gene,
  log_transform = FALSE,
  im_height = 20,
  im_width = 32,
  save_pdf = TRUE
)

Arguments

gene

Gene in the 'hbadata::datHBA' data set; character string

log_transform

Boolean for plotting of linear or log data

im_height

PDF image height

im_width

PDF image width

save_pdf

Output pdf or plot object

Value

Creates a new plot of the gene in the current working directory; label as 'GENE_HBA_subregionsPlot.pdf'

Examples

1
2
# call on a given gene
hba_subregions_plot("FOXP2")

AllenInstitute/atlasplot documentation built on Aug. 11, 2021, 1:52 a.m.