add_empty_pop: Modify a dataframe to enable plotting of populations instead...

View source: R/MullerPlot.R

add_empty_popR Documentation

Modify a dataframe to enable plotting of populations instead of frequencies

Description

The function adds rows at each time point recording the difference between the total population and its maximum value. Generally there is no need to use this function as Muller_pop_plot calls it automatically.

Usage

add_empty_pop(Muller_df)

Arguments

Muller_df

Dataframe created by get_Muller_df

Value

A dataframe that can be used as input in Muller_plot.

Author(s)

Rob Noble, robjohnnoble@gmail.com

See Also

get_Muller_df Muller_pop_plot

Examples

Muller_df <- get_Muller_df(example_edges, example_pop_df)
Muller_df2 <- add_empty_pop(Muller_df)


ggmuller documentation built on Feb. 16, 2023, 7:42 p.m.