View source: R/multSimData_outputMethods.R
plotSeeds | R Documentation |
This method plots the simulation for every seed in the input. Continous variables are plotted as line plots, discrete variables in a stacked barplot beneath. The plot is created with ggplot2 and can be modified afterwards.
plotSeeds(x, seeds, ...)
## S3 method for class 'multSimData'
plotSeeds(x, seeds = NULL, ylim, ...)
## S3 method for class 'multSim'
plotSeeds(x, seeds, ...)
x |
object of class |
seeds |
vector with seed numbers to plot. This is optional if |
... |
additional arguments, currently not used. |
ylim |
a length-2 numeric defining the scale of the y-axis. |
A maximal number of 4 seeds can be plotted. The method requires the package tidyr.
data("toggleSwitch")
msim <- multSim(toggleSwitch, seeds = 1:2)
plotSeeds(msim)
plotSeeds(msim, seeds = 1) + ggplot2::facet_grid(variable ~ seed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.