Learn R Programming

rdwd (version 1.8.0)

plotDWD: 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,
  ...
)

Value

Nothing

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

Author

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

See Also

readDWD()

Examples

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

Run the code above in your browser using DataLab