View source: R/genedrop_plot_functions.R
plot_genedrop | R Documentation |
'plot_genedrop()': Plot a summary graph of 'genedrop_...()' outputs.
plot_genedrop(
genedrop_obj,
analysis_to_plot = "all",
sim_alpha = 0.3,
obs_line_col = "red"
)
genedrop_obj |
Gene-Drop object |
analysis_to_plot |
Default = "all". Options are "frequency", "directional" and "cumulative". This will output graphs of allele frequency changes, directional change, and cumulative change. If the locus is multi-allelic and the user specifies the default option ("all"), the user will be prompted to press <Enter> to advance through each option. |
sim_alpha |
Default = 0.3. Alpha (transparency) value for plotted lines. |
obs_line_col |
Default = "red". Line colour to use for the observed data. |
plot of output from 'genedrop_...()' functions
data(unicorn)
genedrop_obj <- genedrop_snp(
id = unicorn$id,
mother = unicorn$mother,
father = unicorn$father,
cohort = unicorn$cohort,
genotype = unicorn$Horns,
nsim = 100,
n_founder_cohorts = 4,
fix_founders = TRUE,
verbose = TRUE,
interval = 10,
resample_offspring = FALSE
)
plot_genedrop(genedrop_obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.