View source: R/plotHeatmapAggr.R
plotHeatmapAggr | R Documentation |
Plot Heatmap including pre-aggregation of data
plotHeatmapAggr( df, var1, var2, col.low = "white", col.high = "red", title = paste("Heatmap - ", var1, "vs", var2), legendtitle = "Percentage of\nObservations", var1.breaks, var2.breaks )
df |
x |
var1 |
x |
var2 |
x |
col.low |
x |
col.high |
x |
title |
x |
legendtitle |
x |
var1.breaks |
x |
var2.breaks |
x |
returns a ggplot2 object
require(ggplot2) data(diamonds) plotHeatmapAggr(diamonds , var1 = "color" , var2 = "cut" , legendtitle = "Percentage of\nObservations" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.