append_total_line: Convert the contributors to a total and append the total line

View source: R/plots.R

append_total_lineR Documentation

Convert the contributors to a total and append the total line

Description

Wraps the two steps that every plot of an array with total = TRUE needs: the contributors are put on the same size axis as the data they will join, and then summed there, see add_total_line().

Usage

append_total_line(
  plot_dat,
  total_dat,
  params,
  size_axis,
  x,
  per_log_size = NULL
)

Arguments

plot_dat

The converted plotting data to append the total to.

total_dat

The unconverted contributors, see total_contributors().

params

A MizerParams object.

size_axis

Either "w" (weight) or "l" (length).

x

The mizer array the data came from, which says whether the values are a density.

per_log_size

Whether to express a density per logarithmic size.

Value

plot_dat with the total appended as a series named "Total".


mizer documentation built on Aug. 24, 2026, 9:08 a.m.