R/element_point.R

#' Point element
#'
#' In conjunction with ggplot an object to represent point attributes.
#'
#' @param color,colour Point colour.
#' @param size Relative size.
#' @param shape Point shape.
#' @return An object of class `c("element_point", "element")`.
#' @export
element_point <- function (colour = NULL, size = NULL, shape = NULL,
                           color = NULL)
{
  if (!is.null(color)) colour <- color
  structure(
    list(colour = colour, size = size, shape = shape),
    class = c("element_point", "element")
  )
}
jazznbass/scplot documentation built on April 17, 2025, 3:05 p.m.