freqplot | R Documentation |
Heatmap for 2D histograms
freqplot(
x,
y,
breaks = 200,
na.rm = TRUE,
palette = rev(c("#A50026", "#D73027", "#F46D43", "#FDAE61", "#FEE090", "#FFFFBF",
"#E0F3F8", "#ABD9E9", "#74ADD1", "#4575B4", "#313695")),
add_white = TRUE,
...
)
x |
numerical vector |
y |
numerical vector |
breaks |
Number of bins |
na.rm |
Whether to exclude NAs from x and y |
palette |
color palette for the heatmap |
add_white |
Boolean. Whether to add white at the beginning of the palette (for counts of 0 in the 2D histogram) |
... |
passed to image() |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.