#' geom_ring
#' @description Like geom point but only has a rim by default
#'
#' @param fill character string color name or hexidecimal entry
#' @param ...
#'
#' @return a ggplot2 layer
#' @export
#'
#' @examples
#' # without function
#' library(ggplot2)
#' ggplot(cars) +
#' aes(x = speed, y = dist) +
#' geom_ring(size = 7, color = "slateblue")
#'
#' geom_ring
#'
#' # using function
#' library(ggplot2)
#' ggplot(cars) +
#' aes(x = speed, y = dist) +
#' geom_ring(size = 7, color = "slateblue")
geom_ring <- function(...) {
geom_point(shape = 21, ...)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.