Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guyabel/fanplot
Create fan charts in R
https://github.com/guyabel/fanplot
data-visualization dataviz fanchart r rstats rstats-package uncertainty-visualisation
Last synced: about 1 month ago
JSON representation
Create fan charts in R
- Host: GitHub
- URL: https://github.com/guyabel/fanplot
- Owner: guyabel
- Created: 2015-01-23T10:00:05.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-05-02T05:09:10.000Z (over 2 years ago)
- Last Synced: 2024-01-29T00:07:57.807Z (11 months ago)
- Topics: data-visualization, dataviz, fanchart, r, rstats, rstats-package, uncertainty-visualisation
- Language: R
- Homepage: http://guyabel.github.io/fanplot/
- Size: 85.2 MB
- Stars: 2
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
# fig.path = "man/figures/README-",
out.width = "100%"
)
```# fanplot
[![CRAN status](https://www.r-pkg.org/badges/version/fanplot)](https://CRAN.R-project.org/package=fanplot)
[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/grand-total/fanplot?color=blue)](https://r-pkg.org/pkg/fanplot)
[![Lifecycle: superseded](https://img.shields.io/badge/lifecycle-superseded-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html#superseded)
[![R-CMD-check](https://github.com/guyabel/fanplot/workflows/R-CMD-check/badge.svg)](https://github.com/guyabel/fanplot/actions)Visualise sequential distributions using a range of plotting styles. Sequential distribution data can be input as either simulations or values corresponding to percentiles over time. Plots are added to existing graphic devices using the fan function. Users can choose from four different styles, including fan chart type plots, where a set of coloured polygon, with shadings corresponding to the percentile values are layered to represent different uncertainty levels.
See the [pkgdown site](http://guyabel.github.io/fanplot/) for full details.
## ggplot
The plotting functions in fanplot was designed for working with graphics in base R. Jason Hilton has since developed the excellent [ggfan](https://github.com/jasonhilton/ggfan) package for creating fan charts in ggplot2.
## Installation
You can install the released version of fanplot from [CRAN](https://CRAN.R-project.org) with:
``` r
install.packages("fanplot")
```And the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("guyabel/fanplot")
```## Example
```{r example, fig.width=10, fig.height=8, eval=FALSE}
library(fanplot)# empty plot
plot(NULL, xlim = c(1, 945), ylim = range(th.mcmc)*0.85, ylab = "Volatility")# add fan
fan(th.mcmc)
``````{r, echo=FALSE}
knitr::include_graphics("https://raw.githubusercontent.com/guyabel/fanplot/master/README_files/figure-gfm/example-1.png")
```## Article
Read more about the fanplot package in the *R Journal* [article](http://journal.r-project.org/archive/2015-1/abel.pdf)
## Citation
Abel, G. J. (2015). fanplot: An R package for visualising sequential distributions. *R Journal*, 7(1), 15–23.