Last data update: 2014.03.03

R: Plotting Toy Market Objects
plot.toymktR Documentation

Plotting Toy Market Objects

Description

The function plot.toymkt produces several plots of a toymkt object.

Usage

## S3 method for class 'toymkt'
plot(x, ...)

Arguments

x

a toymkt object.

...

further arguments such as main.

Details

Four plots are produced: (i) time series of prices, (ii) time series of log returns, (iii) time series of benchmark weights, and (iv) time series of Shannon entropy (see ShannonEntropy) of the benchmark weights. Default settings are used for these plots, so they may not be informative if the number of assets is large.

See Also

toymkt

Examples

data(EuStockMarkets)
market <- toymkt(price = EuStockMarkets)
plot(market)

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(RelValAnalysis)
Loading required package: zoo

Attaching package: 'zoo'

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

    as.Date, as.Date.numeric

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/RelValAnalysis/plot.toymkt.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plot.toymkt
> ### Title: Plotting Toy Market Objects
> ### Aliases: plot.toymkt
> 
> ### ** Examples
> 
> data(EuStockMarkets)
> market <- toymkt(price = EuStockMarkets)
Warning message:
In toymkt(price = EuStockMarkets) :
  Since initial.weight is not given, the benchmark is assumed to be equal-weighted initially.
> plot(market)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>