add_empty_pop {ggmuller}R 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)


[Package ggmuller version 0.5.6 Index]