#############################################
# Compute the Cumulative Distribution Function
#############################################
getCondCDF <- function(originalValues) {
#get ordered list of non repeated values
xValues <- sort(originalValues)
vals <- unique(xValues)
cdfValues <- cumsum(tabulate(match(xValues, vals)))
return(list(xValues=vals, cdfValues=cdfValues))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.