scale_x_VISITDY: A scale for ggplots with SDTM day (DY) numbering

View source: R/scale_x_VISITDY.R

scale_x_VISITDYR Documentation

A scale for ggplots with SDTM day (DY) numbering

Description

The scale will skip over 0, always show 1 (if it is in the range of the data), provide breaks with preference toward week scales, and provide minor breaks every day.

Usage

scale_x_VISITDY(...)

Arguments

...

Passed to ggplot2::scale_x_continuous()

See Also

Other Output support: make_param_label()

Examples

## Not run: 
ggplot(data.frame(x=-7:14, y=-7:14), aes(x=x, y=y, label=x)) +
  scale_x_VISITDY() +
  geom_text()

## End(Not run)

billdenney/Rsdtm documentation built on Dec. 7, 2022, 2:11 a.m.