create.ladderplot <- function(x) { for (i in (2:length(x))) { if (x[i] >= x[i-1]) { x[i] <- x[i-1] } } return(x) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.