Description Usage Arguments Value Author(s) See Also Examples
Plots a Goelz Triangle experimental design.
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
)
|
data |
An object of class 'goelz' created via |
size |
A numeric value indicating point size. |
fill |
One of "species", "zone", or "border", indicating the column of |
color |
One of "species", "zone", or "border", indicating the column of |
label |
A character string indicating the column name of |
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. |
A ggplot2 object.
Kevin J Wolz, kevin@savannainstitute.org
Other plot functions:
plot_fitness_trajectory()
,
plot_nelder_biculture_competition()
,
plot_nelder()
1 2 | dat <- goelz(N = 35, reps = 1, split = FALSE)
plot_goelz(data = dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.