r - How to change the title of a legend in heatmap( )? -


in ggplot2 change legend title add + guides(fill=guide_legend(title="new legend title")). how do same thing while using heatmap() function? here heatmap attempting label. please tell me if need other information! (the title change matrix_1

code:

heatmap(patric_genomes_amr_2.ris.mat2, row_names_side = "left",      row_dend_side = "left", row_names_gp = gpar(cex=fontsize),  column_names_gp = gpar(cex=fontsize), )  

i think have edit "name" argument. example:

heatmap(patric_genomes_amr_2.ris.mat2, row_names_side = "left",      row_dend_side = "left", row_names_gp = gpar(cex=fontsize),  column_names_gp = gpar(cex=fontsize), name="something else matrix_1") 

by way, nice give information package using.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -