plot_goelz: Plot a Goelz Triangle experimental design

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plot.R

Description

Plots a Goelz Triangle experimental design.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
plot_goelz(
  data,
  size = 4,
  fill = "species",
  color = "border",
  label = "none",
  fill.discrete.palette = c("grey50", "white", "#E69F00", "#56B4E9", "#009E73",
    "#F0E442", "#0072B2", "#D55E00", "#CC79A7"),
  color.discrete.palette = c("black", "green", "red", "blue", "orange", "purple"),
  fill.continuous.palette = ggplot2::scale_fill_viridis_c(option = "magma"),
  color.continuous.palette = ggplot2::scale_color_viridis_c(option = "magma"),
  corners = FALSE,
  guides = FALSE,
  legend = TRUE
)

Arguments

data

An object of class 'goelz' created via goelz with split = FALSE.

size

A numeric value indicating point size.

fill

One of "species", "zone", or "border", indicating the column of data that specifies the point fill color.

color

One of "species", "zone", or "border", indicating the column of data that specifies the point border color. Use "none" for no variation in point borders.

label

A character string indicating the column name of data to use for labels on each point. Use "none" for no labels.

fill.discrete.palette

A character vector indicating the color palette of used for point fill.

color.discrete.palette

A character vector indicating the color palette of used for point borders.

fill.continuous.palette

ggplot2 function for a continuous color palette used for point fill.

color.continuous.palette

ggplot2 function for a continuous color palette used for point color

corners

Logical indicating whether or not to plot red X's at each corner of the rectangle containing the design.

guides

Logical indicating whether or not to plot red +'s as guides at the extremes of each row in the design.

legend

Logical indicating whether or not to include a legend for fill and color values.

Value

A ggplot2 object.

Author(s)

Kevin J Wolz, kevin@savannainstitute.org

See Also

Other plot functions: plot_fitness_trajectory(), plot_nelder_biculture_competition(), plot_nelder()

Examples

1
2
dat <- goelz(N = 35, reps = 1, split = FALSE)
plot_goelz(data = dat)

kevinwolz/sysdesign documentation built on June 13, 2020, 1:35 a.m.