nhp_cortex_expression2D_plot: nhp_cortex_expression2D_plot

Description Usage Arguments Value Examples

Description

Creates a boxed heatmap of the expression values for a single gene in the non-human primate atlas (requires https://github.com/AllenInstitute/nhpdata). This provides a useful view of gene expression by layer, brain region, and developmental stage all together.

Usage

1
2
3
4
5
6
7
8
nhp_cortex_expression2D_plot(
  gene,
  col_vec = c("white", "red"),
  log_transform = FALSE,
  im_height = 9,
  im_width = 18,
  save_pdf = TRUE
)

Arguments

gene

Gene in the 'nhpdata::datNHP' data set; character string

col_vec

List of colors to create linear color map; c("white", "red") default

log_transform

Boolean for plotting log vs linear

im_height

PDF image height

im_width

PDF image width

save_pdf

Save to disk or return to console

Value

Creates a new plot of the gene in the current working directory

Examples

1
2
# call on a given gene
nhp_cortex_expression2D_plot("PAX6", c("green", "skyblue"))

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