plot_phase: Plot speciation phase plane

Description Usage Arguments

View source: R/plot_phase.R

Description

Plots simulations in a phase plane. If tname is provided, plots y against time.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
plot_phase(
  d,
  xname = "x",
  yname = "y",
  tname = NULL,
  labs = NULL,
  colvar = NULL,
  collab = NULL,
  splitvar = NULL,
  splitvar2 = NULL,
  xlim = NULL,
  ylim = NULL,
  xline = FALSE,
  yline = FALSE
)

Arguments

d

Data frame with coordinates per timepoint per simulation

xname

Column name of the x-axis

yname

Column name of the y-axis

tname

Optional time column

labs

Labels for each axis

colvar

What variable to color according to

collab

Optional color legend title

splitvar

Facet splitting variable

splitvar2

Second facet splitting variable

xlim

Boundaries of the x-axis

ylim

Boundaries of the y-axis

xline

Whether to add a vertical line at the initial point

yline

Whether to add a horizontal line at the initial point


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