profile_gene {spatialHeatmap}R Documentation

Plot Gene Expression Profiles in a Data Frame

Description

Plot Gene Expression Profiles in a Data Frame

Usage

profile_gene(
  data,
  scale = "none",
  x.title = "Sample/conditions",
  y.title = "Value",
  text.size = 15,
  text.angle = 45
)

Arguments

data

A data frame, where rows are genes and columns are features/conditions.

scale

The way to to scale the data. If none (default), no scaling. If row, the data is scalaed independently. If all, all the data is scaled as a whole.

x.title, y.title

X-axis title and Y-axis title respectively.

text.size

The size of axis title and text.

text.angle

The angle of axis text.

Value

An image of ggplot.

Author(s)

Jianhai Zhang jzhan067@ucr.edu; zhang.jianhai@hotmail.com
Dr. Thomas Girke thomas.girke@ucr.edu

References

H. Wickham. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2016.
Hadley Wickham (2007). Reshaping Data with the reshape Package. Journal of Statistical Software, 21(12), 1-20. URL http://www.jstatsoft.org/v21/i12/.

See Also

spatial_enrich

Examples


data(deg.table)
# Line graph of selected gene expression profile.
profile_gene(deg.table[1, ])
# See detailed examples in the function "spatial_enrich".

[Package spatialHeatmap version 2.0.0 Index]