Last data update: 2014.03.03

R: Plot time series objects
esgplottsR Documentation

Plot time series objects

Description

This function plots outputs from simdiff.

Usage

  esgplotts(x)

Arguments

x

a time series object, an output from simdiff.

Details

For a large number of simulations, it's preferable to use esgplotbands for a synthetic view by percentiles.

Author(s)

Thierry Moudiki

References

H. Wickham (2009), ggplot2: elegant graphics for data analysis. Springer New York.

See Also

simdiff, esgplotbands

Examples

kappa <- 1.5
V0 <- theta <- 0.04
sigma <- 0.2
theta1 <- kappa*theta
theta2 <- kappa
theta3 <- sigma
x <- simdiff(n = 10, horizon = 5, frequency = "quart",
model = "OU",
x0 = V0, theta1 = theta1, theta2 = theta2, theta3 = theta3)

esgplotts(x)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(ESGtoolkit)
Loading required package: CDVine
The CDVine package is no longer developed actively.
Please consider using the more general VineCopula package
(see https://CRAN.R-project.org/package=VineCopula),
which extends and improves the functionality of CDVine.

Loading required package: ggplot2
Loading required package: gridExtra
Loading required package: reshape2
Loading required package: ycinterextra
Loading required package: compiler

Attaching package: 'ycinterextra'

The following objects are masked from 'package:stats':

    deviance, fitted, residuals

The following object is masked from 'package:base':

    as.list

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/ESGtoolkit/esgplotts.Rd_%03d_medium.png", width=480, height=480)
> ### Name: esgplotts
> ### Title: Plot time series objects
> ### Aliases: esgplotts
> 
> ### ** Examples
> 
> kappa <- 1.5
> V0 <- theta <- 0.04
> sigma <- 0.2
> theta1 <- kappa*theta
> theta2 <- kappa
> theta3 <- sigma
> x <- simdiff(n = 10, horizon = 5, frequency = "quart",
+ model = "OU",
+ x0 = V0, theta1 = theta1, theta2 = theta2, theta3 = theta3)
> 
> esgplotts(x)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>