Learn R Programming

doremi (version 1.0.0)

plot.doremiparam: S3 method to plot DOREMIPARAM objects

Description

plot.doremiparam generates a plot of the parameters resulting from the optimum_param function

Usage

# S3 method for doremiparam
plot(x, ...)

Arguments

x

DOREMIPARAM object resulting from the aforementioned function

...

includes the additional arguments inherited from the generic plot method

Value

Returns a plot showing the evolution of the first/second order differential equation coefficients and R2 with the values taken by the embedding number/smoothing parameter (see details of optimum_param function). The function uses ggplot to generate the graphs and thus it is possible to override the values of axis labels, legend and title through ggplot commands.

Examples

Run this code
# NOT RUN {
mydata <- generate.panel.1order(time = 0:130,
                          excitation = c(rep(0,30),rep(1,50),rep(0,51)),
                          nind = 5,
                          internoise = 0.2,
                          intranoise = 100)
myres<- optimum_param (data = mydata,
                         id = "id",
                         input ="excitation",
                         time = "time",
                         signal = "signal",
                         model = "1order",
                         dermethod = "gold",
                         pmin = 3,
                         pmax = 11,
                         pstep = 2)
plot(myres)
# }

Run the code above in your browser using DataLab