Muller_pop_plot: Draw a Muller plot of population sizes using ggplot2

View source: R/MullerPlot.R

Muller_pop_plotR Documentation

Draw a Muller plot of population sizes using ggplot2

Description

This variation on the Muller plot, which shows variation in population size as well as frequency, is also known as a fish plot.

Usage

Muller_pop_plot(
  Muller_df,
  colour_by = "Identity",
  palette = NA,
  add_legend = FALSE,
  xlab = NA,
  ylab = "Population",
  conceal_edges = FALSE
)

Arguments

Muller_df

Dataframe created by get_Muller_df

colour_by

Character containing name of column by which to colour the plot

palette

Either a brewer palette or a vector of colours (if colour_by is categorical)

add_legend

Logical whether to show legend

xlab

Label of x axis

ylab

Label of y axis

conceal_edges

Whether try to conceal the edges between polygons (usually unnecessary or undesirable)

Value

None

Author(s)

Rob Noble, robjohnnoble@gmail.com

See Also

get_Muller_df Muller_plot

Examples

Muller_df <- get_Muller_df(example_edges, example_pop_df)
Muller_pop_plot(Muller_df)


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