plot_driver_geno_div: Plot genotype diversity versus time

Description Usage Arguments Details Value Examples

View source: R/demonanalysis.R

Description

Plot genotype diversity versus time

Usage

1
2
3
4
plot_driver_geno_div(sum_df, output_filename = NA, file_type = "png",
  output_dir = NA, log_y = FALSE, facet1 = "migration_type",
  facet2 = "migration_edge_only", height = 1, width = 1,
  ymax = 100, selected_seed = NA)

Arguments

sum_df

data frame created by driver_geno_div_df_batch

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

log_y

whether to apply a log10 transformation to the y axis (default FALSE)

facet1

column name for facet rows

facet2

column name for facet columns

height

relative image height

width

relative image width

ymax

maximum of y axis

selected_seed

seed number for which results will be highlighted

Details

Lines are coloured by combinations of parameter values.

Value

either an image file or a plot displyed on screen

Examples

1
2
3
sum_df <- driver_geno_div_df_batch(system.file("example_batch", "", 
package = "demonanalysis", mustWork = TRUE))
plot_driver_geno_div(sum_df)

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