Scatter plot of Up Capture versus Down Capture against a benchmark
chart.CaptureRatios(
Ra,
Rb,
main = "Capture Ratio",
add.names = TRUE,
xlab = "Downside Capture",
ylab = "Upside Capture",
colorset = 1,
symbolset = 1,
legend.loc = NULL,
xlim = NULL,
ylim = NULL,
cex.legend = 1,
cex.axis = 0.8,
cex.main = 1,
cex.lab = 1,
element.color = "darkgray",
benchmark.color = "darkgray",
...
)
Returns to test, e.g., the asset to be examined
Returns of a benchmark to compare the asset with
Set the chart title, same as in plot
Plots the row name with the data point. Default TRUE. Can be removed by setting it to NULL
Set the x-axis label, as in plot
Set the y-axis label, as in plot
Color palette to use, set by default to "black"
From pch
in plot
. Submit a set of
symbols to be used in the same order as the data sets submitted
Places a legend into one of nine locations on the chart: bottomright, bottom, bottomleft, left, topleft, top, topright, right, or center.
set the x-axis limit, same as in plot
set the y-axis limit, same as in plot
The magnification to be used for sizing the legend relative to the current setting of 'cex'.
The magnification to be used for axis annotation relative to
the current setting of 'cex', same as in plot
.
The magnification to be used for sizing the title relative to the current setting of 'cex'.
The magnification to be used for x and y labels relative to the current setting of 'cex'.
Specify the color of the box, axes, and other chart elements. Default is "darkgray"
Specify the color of the benchmark reference and crosshairs. Default is "darkgray"
Any other passthru parameters to plot
Peter Carl
Scatter plot shows the coordinates of each set of returns' Up and Down Capture against a benchmark. The benchmark value is by definition plotted at (1,1) with solid crosshairs. A diagonal dashed line with slope equal to 1 divides the plot into two regions: above that line the UpCapture exceeds the DownCapture, and vice versa.
data(managers)
chart.CaptureRatios(managers[,1:6], managers[,7,drop=FALSE])
Run the code above in your browser using DataLab