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
Post a Comment