Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughjonesd/anim.plots
Simple animated plots for R
https://github.com/hughjonesd/anim.plots
animation graphics plot r
Last synced: 4 days ago
JSON representation
Simple animated plots for R
- Host: GitHub
- URL: https://github.com/hughjonesd/anim.plots
- Owner: hughjonesd
- Created: 2014-10-27T08:26:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T15:08:16.000Z (over 3 years ago)
- Last Synced: 2024-11-01T18:51:49.419Z (11 days ago)
- Topics: animation, graphics, plot, r
- Language: R
- Size: 178 MB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# anim.plots
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/anim.plots)](https://cran.r-project.org/package=anim.plots)
[![R-CMD-check](https://github.com/hughjonesd/anim.plots/workflows/R-CMD-check/badge.svg)](https://github.com/hughjonesd/anim.plots/actions)`anim.plots` provides simple animated versions of basic R plots, using the `animation`
package. It includes animated versions of `plot`, `barplot`, `persp`, `contour`,
`filled.contour`, `hist`, `curve`, `points`, `lines`, `text`, `symbols`, `segments`, and
`arrows`.## Installation
Stable version from CRAN:
```R
install.packages("anim.plots")
```Latest version from github:
```R
# install.packages("devtools")
devtools::install_github("anim.plots/hughjonesd")
```## Example
Zooming into a bivariate normal distribution:
```R
x <- rep(rnorm(400), 10)
y <- rep(rnorm(400), 10)
xlims <- 4 * 2^-(1:10/10)
ylims <- xlims <- rbind(xlims, -xlims)
anim.plot(x, y, times = 10, speed = 2, xlim = xlims, ylim = ylims, col = rgb(0,1,0,.3), pch = 19)
```![anim.plots example](https://hughjonesd.github.io/anim.plots/readme-example.gif)
## More information
* [Vignette](https://hughjonesd.github.io/anim.plots/anim.plots.html)
* [Web presentation](https://hughjonesd.github.io/anim.plots/anim-plots-presentation.html)## Feedback
Got a nice example?
Tweet it.