Description Usage Arguments Details Author(s) References See Also Examples
Creates an emperical cumulative distribution function (ECDF) overlaid with a cumulative distribution function (CDF)
| 1 2 3 | 
| R | an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns | 
| main | set the chart title, same as in  | 
| xlab | set the x-axis label, same as in  | 
| ylab | set the y-axis label, same as in  | 
| xaxis | if true, draws the x axis | 
| yaxis | if true, draws the y axis | 
| colorset | color palette to use, defaults to c("black", "\#005AFF"), where first value is used to color the step function and the second color is used for the fitted normal | 
| lwd | set the line width, same as in  | 
| element.color | specify the color of chart elements. Default is "darkgray" | 
| lty | set the line type, same as in  | 
| ... | any other passthru parameters to  | 
The empirical cumulative distribution function (ECDF for short) calculates
the fraction of observations less or equal to a given value.  The resulting
plot is a step function of that fraction at each observation.  This function
uses ecdf and overlays the CDF for a fitted normal function as well.
Inspired by a chart in Ruppert (2004).
Peter Carl
Ruppert, David. Statistics and Finance, an Introduction. Springer. 2004. Ch. 2 Fig. 2.5
http://www.stat.tamu.edu/~ljin/Finance/chapter2/Fig2_5.txt
| 1 2 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.