Description Usage Arguments Details Examples
View source: R/MGDrivE-Graphics.R
Plots one run from MGDrivE
1 2 | plotMGDrivESingle(readDir, whichPatches = NULL, totalPop = FALSE,
nonZeroGen = FALSE, lwd = 0.75, alpha = 0.75)
|
readDir |
Path to file from single-run of MGDrivE or from analysis function |
whichPatches |
Vector of patches to plot, must be less than 15. Default is NULL if less than 15 patches |
totalPop |
Boolean, to plot the total population or not. |
nonZeroGen |
Boolean, to plot genotypes that are always zero in simulation |
lwd |
Double, specify the line width for plotting |
alpha |
Double, specify the opacity for plotting |
This function plots output from one run or one set of runs after being analyzed. Setting totalPop to FALSE keeps it from plotting the total population. NonZeroGen accounts for genotypes that could exist, but are not created in the simulation. Default is FALSE, as this is easier to read on a plot.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# Requires the user to have run MGDrivE, deterministic or stochastic, analyzed
# the data, and stored it in the directory shown below.
# See vignette for complete example
# Folder where single run is stored
fPath <- "path/to/data/containing/folder"
# plot output to see effect
plotMGDrivESingle(readDir=fPath,totalPop = TRUE,lwd=3.5,alpha=1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.