ggheatmap: Plot a heatmap

Description Usage Arguments Value

View source: R/ggheatmap.R

Description

Generates a heatmap from a data frame

Usage

1
ggheatmap(data, variable, x, y, reduce = NULL, how = last, keep = NULL)

Arguments

data

A data frame

variable

What variable to plot?

x, y

What variables for the x- and y-axes?

reduce

Optional list of extra shrinking steps to perform prior to summarizing the data over all tiles (as defined by combining facets, x and y). See ?shrink.

how

Function used to summarize the data within each tile. Defaults to last. Irrelevant if the data already has one value for each tile. If reduce is specified, this argument must be provided explicitly as a list with one summary function for each grouping level in reduce and a final summary function for each tile. See ?shrink.

keep

Optional extra grouping variables to keep e.g. for facetting

Value

A ggplot


rscherrer/ggsim documentation built on June 11, 2020, 2:22 p.m.