Hello!
Is it possible to italicize the text for row names in pheatmap()?
I tried:
pheatmap(hmdf,
color= (rainbow(96,start=0.0,end=0.74,alpha=1)),
border_color = NA,
show_colnames = TRUE,
show_rownames = TRUE,
labels_col=paste0(c("control"," "," ", "653"," "," ", "111"," "," ")),
angle_col=0,
labels_row=expression(italic(c("ARP3_ARATH", "HF101_ARATH", "PKL_ARATH", "-",
"UPL1_ARATH", "6GPD3_ARATH", "PNSB3_ARATH",
"FL3H_MALDO", "-", "FL3H_PETCR", "CALS3_ARATH",
"SRP40_YEAST", "ACC1_ARATH", "RBS2_BRANA", "CNGC5_ARATH",
"MPK9_ARATH", "PHYLO_ARATH", "CO1A1_HUMAN", "FB30_ARATH",
"IFRH_ARATH", "PER45_ARATH", "IRE1A_ARATH", "PLST1_ARATH",
"-", "PMTK_ARATH", "SGO2_ARATH", "P2C14_ARATH", "-",
"PSL4_ARATH", "-", "RBS2_BRANA", "VIP1_MOUSE", "RCA_ARATH",
"CA4_ARATH", "G3PA2_ARATH", "BCA1_ARATH", "CB1C_ARATH",
"TEX10_HUMAN", "CB21_SINAL", "CB5_ARATH", "RVE6_ARATH",
"-", "-", "YQGF_RHOCB", "IAN9_ARATH", "-", "PRO1_NEUCR",
"-", "ASOL_BRANA", "-", "-", "TIR1_ARATH", "BH106_ARATH",
"EGL1_ARATH", "C3H53_ORYSJ", "PIF1_XENLA", "SBT16_ARATH",
"INO1_SESIN", "APR3_ARATH", "GRDP1_ARATH", "APR3_ARATH",
"APR1_ARATH", "SUT33_ARATH", "APR1_ARATH", "-")))
But I just get a continuous string of italicized row names, even if I add \n
after each.
Similarly, I tried making an object, call it rnames
, comprised of a string of the above row names. This, likewise, does not work.
Any ideas?
Thank you in advance for your time!
David
Awesome! Thank you Kevin!
Can I acknowledge you in the appropriate section when we publish this? You have helped me tremendously with a couple of things. Thanks again!
David
Hey David, sure thing, Hope that the reviewers go easy on you, though!
Thanks Kevin, We still have to validate the RNA seq data with qtPCR but I will let you know when we submit... Thanks again!