Learn R Programming

quantstrat (version 0.8.2)

tradeGraphs: Draw 3D graphs from tradeStats results using rgl

Description

Draw 3D graphs from tradeStats results using rgl

Usage

tradeGraphs(stats, free.params, params.filter = NULL, statistics, title = NULL)

Arguments

stats
a data frame generated by tradeStats()
free.params
a vector of length 2, containing the column names for the data to use on the x and z axes
params.filter
- a regular expression to reduce dimensions by filtering on certain columns
statistics
a vector containing the column names to produce graphs for
title
an optional title to be printed above each graph

Value

invisible -- called for side-effect

Examples

Run this code
## Not run: 
# tradeGraphs (
#      stats = stats,
#      free.params = c("Param.indicator.1.nFast", "Param.indicator.2.nSlow"),
# 	params.filter = "Param.indicator.2.nSlow < 40 & Param.indicator.1.nFast > 5"
#      statistics = c("Net.Trading.PL", "maxDrawdown", "Avg.Trade.PL", "Num.Trades")
#      title = 'Luxor'
# )
# ## End(Not run)

Run the code above in your browser using DataLab