Description Usage Arguments Details See Also Examples
The function plot.toymkt
produces several plots of a toymkt
object.
1 2 |
x |
a |
... |
further arguments such as |
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.
1 2 3 | data(EuStockMarkets)
market <- toymkt(price = EuStockMarkets)
plot(market)
|
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Warning message:
In toymkt(price = EuStockMarkets) :
Since initial.weight is not given, the benchmark is assumed to be equal-weighted initially.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.