plot_heatmap: Plot heatmap of a statistic across parameter space

Description Usage Arguments

View source: R/plot_heatmap.R

Description

Compute a summary statistic for each simulation, then aggregates replicate simutions per combination of parameters and plot the result.la

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
plot_heatmap(
  d,
  labs = NULL,
  xname = "hsymmetry",
  yname = "ecosel",
  zname = "z",
  tname = "t",
  summary = "value",
  tval = NULL,
  trange = NULL,
  theta = 0.9,
  colname = NULL,
  aggregate = "average",
  prob = 0.95,
  threshold = 0.9,
  colors = NULL,
  collab = NULL,
  splitvar = NULL,
  splitvar2 = NULL
)

Arguments

d

Data frame with coordinates per timepoint per simulation

labs

Labels for each axis

xname

Column name of the x-axis

yname

Column name of the y-axis

zname

Column name of the variable to summarize

tname

Time column

summary

Method used to summarize simulations. Either of "value" (picks a value at a given time point), "average" (between two time points) or "threshold" (the time at which a threshold is passed, assuming monotonous increase).

tval

Timepoint to pick a value at (defaults to last generation). Used only if summary method is "value".

trange

Timepoints between which to average (defaults to the entire range). Used only if summary method is "average".

theta

Threshold whose passing time (assuming monotonous increase) is recorded. Used only if summary method is "threshold".

colname

Optional name of the summary column

aggregate

Method used to aggregate replicate simulations. Either of "average", "variance", "quantile" or "number" (the number of replicates above a certain threshold of the summary statistic).

prob

The quantile used to aggregate replicates. Used only if the aggregation method is "quantile".

threshold

The threshold used if the aggregation method is "number".

colors

Optional low and high ends of the color gradient

collab

Optional color legend title

splitvar

Facet splitting variable

splitvar2

Second facet splitting variable


rscherrer/egstools documentation built on April 4, 2020, 1:40 a.m.