Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
75 lines (49 loc) · 2.68 KB

File metadata and controls

75 lines (49 loc) · 2.68 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
# fig.path = "man/figures/README-",
out.width = "100%"
)
```
# fanplot
<!-- badges: start -->
[![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/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/guyabel/fanplot/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
<!-- <img src='https://raw.githubusercontent.com/guyabel/fanplot/master/hex/logo_transp.png' align="right" height="180" style="padding-left: 20px; padding-bottom: 20px;" /> -->
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.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.