scale_x_wid: Scale from wid to Yearweek values

View source: R/ggplot2.R

scale_x_widR Documentation

Scale from wid to Yearweek values

Description

Yearweek values are generated by iso_yearweek() function

Usage

scale_x_wid(
  ww,
  week.sep = "s",
  breaks = "auto",
  col.yw = "yw",
  label = "yw",
  by = NULL,
  week = NULL,
  complete = FALSE,
  n.pretty = 5
)

Arguments

ww

data.frame() associating wid to yearweek

week.sep

separator for yearweek week label

breaks

start|auto|all|by|year|week breaks strategy or a function(limits) returing breaks

col.yw

yearweek values column in [ww]

label

labelling strategy (yw or "year" for year label), or function(yw)

by

number of week step to use if breaks="by"

week

number to use if breaks=week

complete

force the ww data.frame to be complete (recompute wid) from yearweek range

n.pretty

number ticks to generate (breaks=auto)

Details

start, year : tick is first week of the year


cturbelin/ifnBase documentation built on Aug. 26, 2024, 12:54 p.m.