项目作者: ablejec

项目描述 :
Support for Animated Graphics in Base R Graphics
高级语言: R
项目地址: git://github.com/ablejec/animatoR.git
创建时间: 2016-07-10T04:26:22Z
项目社区:https://github.com/ablejec/animatoR

开源协议:

下载


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!

  1. if (!require(devtools)) {
  2. install.packages("devtools")
  3. require(devtools)
  4. }
  5. 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/