pretty_quants <- function(vec, n=10){
quants <- quantile(vec, na.rm = T, probs = seq(0,1,1/n))
prettyquants <- sapply(quants, pretty)
breaks <- unname(c(prettyquants[1,], max(prettyquants)))
return(breaks)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.