Learn R Programming

RelValAnalysis (version 1.0)

plot.toymkt:

Plotting Toy Market Objects

Description

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

Usage

"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

Run this code
data(EuStockMarkets)
market <- toymkt(price = EuStockMarkets)
plot(market)

Run the code above in your browser using DataLab