Description Usage Arguments Value Examples
View source: R/forecastingplots.R
Violin plot of mean sweep metric (genotype frequency autocorrelation)
1 2 | plot_viol_sweep_metric(df, output_filename = "viol_sweep_metric",
file_type = "png", output_dir = NA)
|
df |
dataframe generated by get_summary (filtered), get_cor_summary (filtered) or get_wait_cor_summary (filtered) |
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 |
a plot object
1 2 3 4 | library(dplyr)
plot_viol_sweep_metric(filter(summary, gap == min(gap), start_size == min(start_size)))
plot_viol_sweep_metric(filter(cor_summary, gap == min(gap), start_size == min(start_size)))
plot_viol_sweep_metric(filter(wait_cor_summary, start_size == min(start_size)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.