View source: R/mu_ggplots2_ext.R
ggplot2.heatmap | R Documentation |
converts a matrix or dataframe into a ggplot2 object for subsequent plotting.
ggplot2.heatmap(mm, add.text = FALSE)
mm |
matrix or dataframe to be plottet as heatmap |
add.text |
logical. should the cells be labelled with the values |
the ggplot2 object (can be extended for plotting)
ggplot2.heatmap(airquality[1:15,],add.text=TRUE) + scale_fill_gradient(low = "red",high = "steelblue"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.