ggdraft: Create a drafting space of fixed width and height

View source: R/ggdraft.R

ggdraftR Documentation

Create a drafting space of fixed width and height

Description

Create a drafting space of fixed width and height

Usage

ggdraft(x = 0, y = 0, width = 1, height = width/1.618)

Arguments

x

numeric x origin of drafting space

y

numeric y origin of drafting space

width

numeric width of drafting space, defaults to 1

height

numeric heigh of drafting space, defaults width/1.618

Examples

library(ggplot2)
ggdraft() +
stamp_curve(curvature = .13,
            size = .09,
            yend = 20:60/100,
            xend = 1) +
stamp_polygon(x0 = .20, y0 = .40,
              radius = .20, alpha = .4) +
stamp_text(x = .20, y = .40, label = "{ggstamp}",
           size = 6, color = "grey97")

# remove drafting lines
(ggdraft() +
stamp_polygon(x0 = .20, y0 = .40,
              radius = .20, alpha = .4) +
stamp_polygon(x0 = .85, y0 = .23,
              radius = .22,
              n = 5, fill = "seagreen2")
   ) +
theme_void()

EvaMaeRey/ggstamp documentation built on June 30, 2022, 11 p.m.