R/scale-identity.R

Defines functions scale_starshape_identity

Documented in scale_starshape_identity

#' Use values without scaling for ggstar
#' 
#' @inheritDotParams ggplot2::continuous_scale
#' @param guide Guide to use for this scale. Defaults to `"none"`.
#' @seealso \code{\link[ggplot2]{scale_shape_identity}}
#' @importFrom ggplot2 continuous_scale ScaleContinuousIdentity
#' @return identical (default) starshape scale constructor
#' @export
scale_starshape_identity <- function(..., guide = "none") {
    sc <- continuous_scale("starshape", "identity", scales::identity_pal(), ..., guide = guide,
                           super = ScaleContinuousIdentity)
    sc
}

Try the ggstar package in your browser

Any scripts or data that you put into this service are public.

ggstar documentation built on Nov. 10, 2022, 5:32 p.m.