plotHeatmapAggregate: Aggregate data and generate a heat map object.

Description Usage Arguments Value

View source: R/plotting.R

Description

Given a data frame in long format and X- and Y-axes, calculate the mean value of a value column for each (x, y) combination and plot as a heatmap.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plotHeatmapAggregate(
  data,
  x,
  y,
  value,
  func = median,
  type = NULL,
  title = NULL,
  x_axis_order = NULL,
  y_axis_order = NULL,
  theme = NULL
)

Arguments

data

Data frame to be aggregated and plotted.

x

Column names for X-axis and Y-axis, respectively.

y

Column names for X-axis and Y-axis, respectively.

value

Column name for tile values.

type

Heatmap type (NULL, cluster_labels, abundance, or change). This will influence formatting.

title

Plot title.

x_axis_order

Order of X- and Y-axis tick labels. If none specified, mixedsort will be used.

y_axis_order

Order of X- and Y-axis tick labels. If none specified, mixedsort will be used.

theme

Modifications to the default ggplot theme.

Value

An orloj plot list with the plot object and any other parameters that are required to export it.


astrolabediagnostics/orloj documentation built on May 20, 2021, 2:17 p.m.