profile_gene {spatialHeatmap} | R Documentation |
Plot Gene Expression Profiles in a Data Frame
profile_gene( data, scale = "none", x.title = "Sample/conditions", y.title = "Value", text.size = 15, text.angle = 45 )
data |
A data frame, where rows are genes and columns are features/conditions. |
scale |
The way to to scale the data. If |
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. |
An image of ggplot.
Jianhai Zhang jzhan067@ucr.edu; zhang.jianhai@hotmail.com
Dr. Thomas Girke thomas.girke@ucr.edu
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/.
spatial_enrich
data(deg.table) # Line graph of selected gene expression profile. profile_gene(deg.table[1, ]) # See detailed examples in the function "spatial_enrich".