Learn R Programming

fractalrock (version 1.1.0)

plotReturns: Plot asset prices and returns for fractal analysis

Description

This is a convenience function for studying the generated time series by the fragtalrock package. Given a time series of prices, plotReturns will plot both the original time series of prices and the returns series. This is a useful visual aid in determining the utility of the simulated time series.

Usage

plotReturns(series, ...)

Arguments

series
A time series
...
Additional arguments to pass to plot

Value

Invisibly returns the original series

Examples

Run this code
  data(generators)
  ps <- fractal(sampleInitiators, sampleGenerators, epochs=3)
  plotReturns(ps)

Run the code above in your browser using DataLab