View on GitHub

animatoR

Support for Animated Graphics in Base R Graphics

Build Status AppVeyor Build Status tag Coverage Status codecov CRAN_Status_Badge In Progress
DOI

R Package animatoR

Support for Animated Graphics in Base R Graphics

Enable plotting of graphics elements (e.g. points, lines, segments) in any position between two predefined positions. The central function animator() takes care about the repeated plotting of graphical elements at different positions. As a simple example, user can define the starting and ending position of a point and animator() will produce plots of the point between those positions. The result is an animated impression of the point moving along the screen.

Installation

Note: package is under development, some things might change!

if (!require(devtools)) {
    install.packages("devtools")
    require(devtools)
}
devtools::install_github("ablejec/animatoR")

Minimal example

Move one point across the screen:

```{r, eval=FALSE} require(animatoR)

Move one point across the screen

cmd <- “newplot(stamp=TRUE) tpoints(0,0,5,10,trace=TRUE,pch=16,cex=1.5)” animator(cmd) ```

Website

https://ablejec.github.io/animatoR/