brsp_subregions_plot: brsp_subregions_plot

Description Usage Arguments Value Examples

View source: R/brspplot.R

Description

Plot subregion expression levels for the human brainspan atlas. Provides coloring by both donor age and brain structure in a single plot.

Usage

1
2
3
4
5
6
7
8
9
brsp_subregions_plot(
  gene,
  technique = "array",
  cmp = heat.colors,
  log_transform = FALSE,
  im_height = 25,
  im_width = 75,
  save_pdf = TRUE
)

Arguments

gene

Gene in the 'brspdata' package (https://github.com/AllenInstitute/brspdata)

technique

Either 'rna', for RNAseq, or 'array', for exon microArray

cmp

R color-map function for ages; default heat.colors

log_transform

Boolean for plotting of linear or log2-normalized data

im_height

PDF image height

im_width

PDF image width

save_pdf

Save PDF or output to console

Value

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

Examples

1
2
# call on a given gene
brsp_subregions_plot("SCARF1", "rna")

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