Plots the capture curves from aedes_synapse_capture(), with
the synapse count of each ranked body underneath, and one panel per group
when capture was computed by a column.
Usage
aedes_plot_capture(
x,
tier_labels = NULL,
colours = NULL,
ymax = 5000,
title = NULL,
subtitle = NULL
)Arguments
- x
A data frame from
aedes_synapse_capture(), or a subset of its rows (e.g. every tenth rank).- tier_labels
Legend labels for the tiers, named by tier.
- colours
Line colours, named by tier. The default has distinct colours for up to ten tiers.
- ymax
The synapse count shown at the top of the plot (on the right hand axis); bodies with more synapses are drawn at
ymax.- title, subtitle
Passed to
ggplot2::labs().
Examples
if (FALSE) { # \dontrun{
cap <- aedes_synapse_capture(aedes_synapse_data())
aedes_plot_capture(cap, title = "Aedes synapse capture")
} # }