plot_params: Visualize values of parameters

Description Usage Arguments Details Value Examples

View source: R/plot_params.R

Description

Plot the parameters that have the greatest variance in the experiments of a model.

Usage

1

Arguments

exp

An object of class experiment.

Details

From the list of all parameters of the experiments that do vary (i.e. not null) the one (up to 3) with the biggest variance are ploted in 3D, 2D and 1D.

Value

Returns a vector of the variables with highest variances.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
df <-   data.frame(S0 = c(900, 800, 500), # this is a data frame of 3 lines
                  I0 = c(100, 200, 500),
                  R0 = 0,
                  beta = c(1.4, 1.5, 1.6),
                  gamma = .15,
                  S = c(1, 2, 3),
                  I = c(2, 4, 6),
                  R = c(10, 20, 30),
                  nbiter = 1000,
                  seed = 123456789)
exp0 <- as_experiment(df, parameters = c("S0", "I0", "R0", "beta", "gamma"),
                      obsrates  = c("S", "I", "R"),
                      tmax = "nbiter", seed = "seed", experiment = "sir",
                      model =
                       system.file("models", "sir.gaml", package = "rama"))
plot_params(exp0)

r-and-gama/rama documentation built on July 19, 2019, 9:49 p.m.