plot_corr_outcome_versus_period: Plot correlation between outcome and diversity, versus...

Description Usage Arguments Value Examples

View source: R/forecastingplots.R

Description

Plot correlation between outcome and diversity, versus projection period, coloured by K, for each value of tumour size at measurement

Usage

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

Arguments

df

dataframe generated by get_cor_summary

col_name

name of column containing correlation coefficients, with or without "Cor_" suffix (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

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