#----------------------------------------------------------------------------#
#' @title ticks number control
#' @description ticks number control for ggplot
#' @param n number of ticks
#' @examples "scale_x_continuous(break = n.ticks(20))"
#' @export
n_ticks = function (n) {function(limits) pretty(limits, n)}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.