plot_corr_waiting_time_versus_depth: Plot correlations between waiting time and diversity measured...

Description Usage Arguments Value Examples

View source: R/forecastingplots.R

Description

Plot correlations between waiting time and diversity measured at different depths, coloured by size at measurement

Usage

1
2
3
plot_corr_waiting_time_versus_depth(df, col_prefix,
  output_filename = "corr_waiting_time_versus_depth",
  file_type = "png", output_dir = NA)

Arguments

df

dataframe generated by get_wait_cor_summary

col_prefix

text that appears in all names of columns containing correlation statistics

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
3
library(dplyr)
plot_corr_waiting_time_versus_depth(filter(depth_wait_cor_summary, K == 16), 
"DriverDiversityFrom1SamplesAtDepth")

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