Description Usage Arguments Examples
Plot a boxplot or violin plot or dotplot for every time value in the data.frame (a maximum of 12 different time values is allowed). Outliers can be plotted with a number on their side which represents the seed number that was #' used to simulate the simulation that causes the outlier. The number of outliers that shall be plotted this way is determined by parameter nolo(= number of labelled outliers). A red diamond represents the median of the simulated values. The plot is created with ggplot2 and can be modified afterwards.
1 2 3 4 5 6 7 8 9 |
x |
object of class |
vars |
character vector of variable names that shall be plotted |
times |
numeric vector with time values to plot. If no vector is given, ten values between the minimum and maximum provided time values will be plotted. |
nolo |
an integer giving the number of outliers that shall be labelled with the seed number that was used for simulation. Defaults to 0. |
plottype |
character vector determining the type of the plot. Possible values are 'boxplot', 'violin' or 'dotplot'. Defaults to 'boxplot'. |
... |
additional parameters for the plotting function (either geom_boxplot, geom_violin or geom_dotplot, depending on parameter plottype). |
1 2 3 4 5 | data("simplePdmp")
times(simplePdmp) <- c(from = 0, to = 5, by = 1)
md <- getMultSimData(multSim(simplePdmp, 1:8), times = 1:5)
plotTimes(md, plottype = 'violin')
plotTimes(md, nolo = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.