plot_zt: Plot trait distribution through time

View source: R/plot_zt.R

plot_ztR Documentation

Plot trait distribution through time

Description

A forked version of the of comrad::plot_comm_traits_evolution(). The main difference is the (faster) use of rectangles instead of hexes to represent occupied areas of the trait distribution, and more straightforwards plotting options.

Usage

plot_zt(
  comsie_tbl,
  fill_by = "clade",
  xlim = c(0, max(comsie_tbl$t)),
  ylim = c(-7.5, 7.5),
  binwidths = c(100, 0.01),
  alpha = 1
)

Arguments

comsie_tbl

a tibble, e.g. output of read_comsie_tbl()

fill_by

How should rectangles be coloured? either "species" or "clade".

xlim

length 2 num vector to pass to ggplot's coord_cartesian()

ylim

length 2 num vector to pass to ggplot's coord_cartesian()

binwidths

length 2 num vector, horizontal and vertical widths of the rectangles.

alpha

the ggplot parameter


TheoPannetier/comsie documentation built on Nov. 21, 2022, 4:35 p.m.