Learn R Programming

dsmodels

Contact: cstein1@trinity.edu , sfogarty@trinity.edu

dsmodels is an expressive language for visualizing and analyzing two-dimensional dynamical systems. Scripts are built from a model encapsulating the dynamical system, to which other objects are composed. Components include: visualization of the entire range; user-defined curves and points; iterated images with color gradiants; and colored regions. The language can also approximate attractors and their basins through simulation.

library(dsmodels)
model <- dsmodel(function(x,y) {
  list( x*exp(2.6-x-6.45/(1+4.5*x)),
        y*exp(2.6-y-0.15*x-6.25/(1+4.5*y)) )
})
model + dsrange(0:3,0:3,discretize = 0.1, frame.plot = FALSE, axes = FALSE)
model + dsarrows(head.length=0.15)
model + simattractors() + simbasins(discretize = 0.01)

Installation

To install dsmodels, simply type into your R console the following line:

 install.packages("dsmodels") 

To install the latest version (1.1) from GitHub:

  # install.packages("devtools")
  devtools::install_github("Trinity-Automata-Research/dsmodels")

Copy Link

Version

Install

install.packages('dsmodels')

Monthly Downloads

20

Version

1.1.0

License

GPL-2 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Charles Stein

Last Published

July 22nd, 2017

Functions in dsmodels (1.1.0)

colorVector

Set Color Vector From Parameters
+.dsproto

Adds a new component to a dsmodel.
NaNRemove

NaNRemove
background

Background
boolpos

Find Positions of False Elements
$.dsproto

Used to call members of a dsproto
dsdots

Adds a visualization of the system using dots
dsmodel

Defines a model object encapsulating a dynamical system
dsarrows

Add a visualization of the system using arrows
dscurve

Parametric curves or a graph of functions
features

Features
findFixedPoint

Finds which fixed-point a point will end up at under a certain function.
is.dsimage

Reports whether x is a dsimage
is.dspoint

Reports whether x is a dspoint
dspoint

Individual points and their images
dsproto

Create a new dsproto object
is.dots

Reports whether x is a dsdots object.
is.dsarrows

Reports whether x is a dsarrows object.
dsrange

Range of inputs for a model
dsregion

Colored polygonal region
is.dsproto

Tests if an object is a ds object.
is.dsregion

Reports whether x is a dsregion object.
facade

Facade
feature

Feature
is.facade

Checks if object is a facade
pointsToList

Converts a list of points to a list of x coordinates, y coordinates, region colors, and indexes.
safe.apply

Abstract a Function which does not Crash Upon Failure
simattractors

Determine the attractors of a model through simulation
simbasins

Find basins of attraction by simulation
ylabel

Create a label on the y-axis
is.ylabel

Checks to see if object is ylabel.
pnt

Alias to make constructing points for regions easier.
findNearestPoint

Determines which point in a list is closest to the input. 0 is used if all are further from epsilon.
is.background

Checks if object is a background
is.curve

Reports whether x is a dscurves object.
is.discretizedrange

Reports whether x is a discretized range.
is.model

Checks if object is a mode.
is.range

Reports whether x is a range.
is.feature

Checks if object is a feature
is.visualization

Checks if object is a visualization
is.xlabel

Checks to see if object is xlabel.
visualization

Visualization
xlabel

Create a label on the x-axis