plot_scatter_outcome_diversity: Example scatter plots of outcome versus diversity

Description Usage Arguments Value Examples

View source: R/forecastingplots.R

Description

Example scatter plots of outcome versus diversity

Usage

1
2
3
plot_scatter_outcome_diversity(df, col_name = "DriverDiversity",
  output_filename = "scatter_outcome_diversity", file_type = "png",
  output_dir = NA)

Arguments

df

dataframe

col_name

name of column containing a diversity metric (default "DriverDiversity")

output_filename

name of output image file

file_type

either "pdf" or "png" (other values default to "pdf")

output_dir

folder in which to save the image file; if NA then plots are displayed on screen instead

Value

a plot object

Examples

1
2
library(dplyr)
plot_scatter_outcome_diversity(filter(summary, K == 16, start_size == 500))

robjohnnoble/demonanalysis documentation built on June 30, 2020, 12:47 a.m.