pos_month: Return positions for equilateral polygon vertices

View source: R/pos_month.R

pos_monthR Documentation

Return positions for equilateral polygon vertices

Description

Return positions for equilateral polygon vertices

Usage

pos_month(
  month = "2021-10",
  x0 = 0,
  y0 = 0,
  week_start_day = "Sunday",
  width = 1,
  height = width
)

Arguments

x0

numeric for x starting point for positioner

y0

numeric for y starting point for positioner

Examples

pos_month("1999-02")
pos_month(month = "1999-02")

# Using w plotspace
ggcanvas() +
stamp_tile(xy = pos_month("2021-10")) +
stamp_text(xy = pos_month("2021-10"),
label = 1:31) +
stamp_point(alpha = .2,
xy = pos_month()[3:12,],
color = "blue", size = 11) +
stamp_tile(xy =
pos_month("2000-02",
x0 = 0, y0 = -5),
fill = "linen")

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