scale_target: create a target and circle shape scale

View source: R/scale_target.R

scale_targetR Documentation

create a target and circle shape scale

Description

creates a shape and size scale for plotting targets in ggplot2

Usage

scale_target(..., size = 2)

Arguments

...

arguments passed to discrete scale

size

the size of the shapes

Examples

library(ggplot2)
data.frame(x = rnorm(20), y = rnorm(20), z= factor(c(rep(1, 15), rep(2, 5)))) %>%
   ggplot(aes(x = x, y = y, shape = z, size = z, color = z)) +
   scale_target() +
   geom_point()

QuartzSoftwareLLC/ggquartz documentation built on Aug. 24, 2022, 2:53 p.m.