cantemp_barcode: Create a barcode plot from a time-series of temperature data

Description Usage Arguments Value Author(s) Examples

Description

Create a barcode plot from a time-series of temperature data.

Usage

1
2
3
4
cantemp_barcode(data, scale_col_low = "#053061",
  scale_col_mid = "white", scale_col_high = "#67001f",
  scale_col_na = "grey50", scale_name = NULL, scale_breaks = 5,
  scale_digits = 1, x_breaks = waiver())

Arguments

data

A data.frame returned by cantemp_fetch, subset to a single climate station

scale_col_low

Color for low end of temperature gradient (see scale_fill_gradient2)

scale_col_mid

Color for middle of temperature gradient (see scale_fill_gradient2)

scale_col_high

Color for high end of temperature gradient (see scale_fill_gradient2)

scale_col_na

Color for missing values of temperature (see scale_fill_gradient2)

scale_name

Name to print above color scale

scale_breaks

Number of breaks in color scale

scale_digits

Number of digits in color scale temperature labels

x_breaks

Breaks for the x-axis (see 'breaks' argument of scale_x_continuous)

Value

A barcode plot

Author(s)

Patrick M. Barks <patrick.barks@gmail.com>

Examples

1
2
3
4
temp_annual <- cantemp_fetch(interval = "annual")
temp_toronto <- subset(temp_annual, station == "TORONTO")

cantemp_barcode(temp_toronto)

patrickbarks/cantempr documentation built on May 22, 2019, 2:45 p.m.