Learn R Programming

climaemet (version 0.2.0)

ggstripes: Warming stripes graph

Description

Plot diferent "climate stripes" or "warming stripes" using ggplot2. This graphics are visual representations of the change in temperature as measured in each location over the past 70-100+ years. Each stripe represents the temperature in that station averaged over a year.

Usage

ggstripes(
  data,
  plot_type = c("background", "stripes", "trend", "animation"),
  plot_title = "",
  ...
)

Arguments

data

a data.frame with date(year) and temperature(temp) variables.

plot_type

plot type (whith labels, background, stripes with line trend and animation)

plot_title

character string to be used for the graph title.

...

further arguments passed to theme.

Value

a ggplot object

See Also

theme for more possible arguments to pass to ggstripes.

Examples

Run this code
# NOT RUN {
ggstripes(data, plot_type = "background")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab