plot.pc {ecode}R Documentation

Plot a Phase Curve With Time

Description

Creates a plot of a phase curve

Usage

## S3 method for class 'pc'
plot(x, model_var_label = NULL, model_var_color = NULL, ...)

Arguments

x

object of class "pc" that represents a phase curve.

model_var_label

a list indicating labels of model variables. Name should be old variable names and values should be names of labels.

model_var_color

a list indicating colors of model variable. Name should be old variable names and values should be 16-bit color codes.

...

additional parameters accepted by the function "geom_line".

Value

a graphic object

Examples

eq1 <- function(x, y, r1 = 4, a11 = 1, a12 = 2) (r1 - a11 * x - a12 * y) * x
eq2 <- function(x, y, r2 = 1, a21 = 2, a22 = 1) (r2 - a21 * x - a22 * y) * y
x <- eode(dxdt = eq1, dydt = eq2, constraint = c("x<1", "y<1"))
pc <- eode_proj(x, value0 = pp(list(x = 0.2, y = 0.1)), N = 100)
plot(pc)

[Package ecode version 0.1.0 Index]