Description Usage Arguments Examples
plots hotmap
1 2 3 4 5 6 | hotmap(ourmatrix, colors = colorRampPalette(c("deepskyblue2", "black",
"gold"))(100), labrow = TRUE, labcol = TRUE, gaps = NULL,
gapsize = 0.025, rowcolors = NULL, xlab.cex = 1, xlab.font = 1,
selectylabs = c(), selectylabs.label = NULL, selectylabs.col = "black",
selectylabs.linecol = "black", ylab.dist = 0.05, ylab.cex = 1,
ylab.font = 1, radius = 0.01)
|
ourmatrix |
matrix to biuld hotmap from |
colors |
colors to use for heatmap |
labrow |
boolean whether or not rows should be labeled |
labcol |
boolean whether or not rows should be labeled |
gaps |
vector of rows after which a gap should be inserted |
gapsize |
size of each gap as a fraction of the entire height of the hotmap |
rowcolors |
a matrix of colors to be plotted to the side of each row |
xlab.cex |
magnification level of x axis font |
xlab.font |
font type of x axis font |
selectylabs |
names of rows to be labeled on y axis |
selectylabs.label |
optional vector of labels for y axis labels |
selectylabs.col |
single color or vector of colors for y axis labels |
selectylabs.linecol |
single color or vector of colors for lines to y axis labels |
ylab.dist |
the distance (line) away from the y axis that labels whould be written |
ylab.cex |
magnification level of x axis font |
ylab.font |
font type of y axis font |
radius |
(if selectylabs is not empty) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(SushiRNA)
colnames(SushiRNA) = c("0.0","0.5","1.0","1.5","2","4","6")
# first row colors
rowcolors = rep("black",nrow(SushiRNA))
rowcolors[1:750] = "grey"
rowcolors[751:1315] = "firebrick2"
par(mar=c(3,5,2,2))
par(mgp=c(3,.05,0))
test = sample(rownames(SushiRNA),30)
hotmap(SushiRNA,labrow = F,gaps=c(750,1315),rowcolors=rowcolors,
xlab.cex=0.6,ylab.cex=0.4,ylab.font=1,
selectylabs = test,ylab.dist=0.05,radius = .01)
mtext(side=1,line=1.0,font=2,text="Time (h) after LPS/IFNg treatment",cex=.75)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.