Coder Social home page Coder Social logo

fanplot's Introduction

fanplot

CRAN status CRAN RStudio mirror downloads Lifecycle: superseded R-CMD-check

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 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 package for creating fan charts in ggplot2.

Installation

You can install the released version of fanplot from CRAN with:

install.packages("fanplot")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("guyabel/fanplot")

Example

library(fanplot)

# empty plot
plot(NULL, xlim = c(1, 945), ylim = range(th.mcmc)*0.85, ylab = "Volatility")

# add fan
fan(th.mcmc)

Article

Read more about the fanplot package in the R Journal article

Citation

Abel, G. J. (2015). fanplot: An R package for visualising sequential distributions. R Journal, 7(1), 15โ€“23.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.