plotDWD: Quickly plot time series

View source: R/plotDWD.R

plotDWDR Documentation

Quickly plot time series

Description

plot rdwd time series from data.frames

Usage

plotDWD(
  x,
  cn,
  monthaxis = TRUE,
  line0 = FALSE,
  xlab = "",
  ylab = cn,
  main = "",
  type = "l",
  lwd = 3,
  col = "blue",
  las = 1,
  mar = c(2.6, 3.1, 2.5, 0.5),
  mgp = c(1.9, 0.7, 0),
  keeppar = TRUE,
  ...
)

Arguments

x

Data.frame, e.g. from readDWD.data

cn

Column name (charstring)

monthaxis

Draw nice axis? DEFAULT: TRUE

line0

Draw horizontal line at 0? DEFAULT: FALSE

xlab

X axis label. DEFAULT: ""

ylab

Y axis label. DEFAULT: cn

main

Plot title. DEFAULT: ""

type

graphics::plot type. DEFAULT: "l"

lwd

Line width. DEFAULT: 3

col

Line color. DEFAULT: "blue"

las

Label axis style. DEFAULT: 1 (all upright)

mar

Plot margins. DEFAULT: c(2.6, 3.1, 2.5, 0.5)

mgp

Margin placement. DEFAULT: c(1.9, 0.7, 0)

keeppar

Keep ⁠las, mar and mgp⁠ as set with par, so later points are added in the right location? DEFAULT: TRUE

...

Further arguments passed to graphics::plot

Value

Nothing

Author(s)

Berry Boessenkool, berry-b@gmx.de, Sep 2021

See Also

readDWD()

Examples

link <- selectDWD("Potsdam", res="daily", var="kl", per="r")
clim <- dataDWD(link, dir=locdir(), varnames=TRUE)
plotDWD(clim, "TMK.Lufttemperatur", line0=TRUE, main="Potsdam")


rdwd documentation built on July 9, 2023, 5:24 p.m.