heatmapper: Create a Simple Heat Map (by ggplot)

Description Usage Arguments Value Examples

Description

This function creates a basic heat map with ggplot(), for default use in shinyit().

Usage

1
2
heatmapper(dataset, colors, plot_title = "Heat Map", guide_title = "Stat",
  lower = 0, upper = 0.17)

Arguments

dataset

Data frame to use to build heat map. Coordinates for the heat map must be columns in dataset named x and y

colors

The statistic of interest represented by a color at each (x, y) location on the heat map; must be saved in global environment, or supplied in this format: dataset$colors

plot_title

The title for the plot, must be in quotes, defaults to "Heat Map"

guide_title

The title for the guide, must be in quotes, defaults to "Stat"

lower

lower bound for plot legend

upper

upper bound for plot legend

Value

A heat map of the statistic supplied to the argument colors.

Examples

1
with(peralta[[1]], heatmapper(peralta[[1]], stat))

cwcomiskey/mapapp documentation built on May 9, 2019, 12:47 p.m.