seasAxis: Seasonality axis

Description Usage Arguments Value Author(s) See Also Examples

View source: R/seasAxis.R

Description

Add monthly axis labels on seasonality plots

Usage

1
2
3
seasAxis(shift = 0, janline = TRUE, mlabs = substr(month.abb, 1, 1),
  mline = 0.7, xlab = "Month", xline = 2, side = 1, targs = NULL,
  largs = NULL, xargs = NULL, ...)

Arguments

shift

Number of days to move the year-break to. E.g. shift=61 for German hydrological year (Nov to Oct). DEFAULT: 0

janline

Logical: Should horizontal line be plotted at January 1st if shift!=0? DEFAULT: TRUE

mlabs

Labels for the months. DEFAULT: J,F,M,A,M,J,J,A,S,O,N,D

mline

Placement of labels (Distance from axis). DEFAULT: 0.7

xlab

Label for the axis. DEFAULT: "Month"

xline

Placement of axis label. DEFAULT: 2

side

Margin side for axis. DEFAULT: 1

targs

Optional list of arguments passed to axis for month separating ticks. DEFAULT: NULL

largs

Optional list of arguments passed to axis for mid-month labels. DEFAULT: NULL

xargs

Optional list of arguments passed to title for general axis label. DEFAULT: NULL

...

Further arguments passed to abline for janline (excluding v).

Value

nothing

Author(s)

Berry Boessenkool, berry-b@gmx.de, Jun 2017

See Also

qdoyVis

Examples

1
2
3
4
5
6
plot(1:366, xaxt="n", xaxs="i")
seasAxis(shift=117)
seasAxis(shift=117, targs=list(col.ticks="red"), lwd=3, col="purple")

plot(1:366, yaxt="n", ylim=c(366,0))
seasAxis(shift=117, side=2)

brry/rfs documentation built on May 24, 2019, 3:05 a.m.