spZone: [!] Annotate x axis range in ggplot2 graphs

View source: R/spZone.R

spZoneR Documentation

[!] Annotate x axis range in ggplot2 graphs

Description

A wrapper function to annotate x axis range for ggplot2 graphs

Usage

spZone(xmin, xmax, fill = "red", alpha = 0.2, ...)

## Default S3 method:
spZone(xmin, xmax, fill = "red", alpha = 0.2, ...)

## S3 method for class 'formula'
spZone(x, fill = "red", alpha = 0.2, ...)

Arguments

xmin

Minimum value of x axis.

xmax

Maximum value of x axis.

fill

Fill color.

alpha

Fill transperency.

...

further arguments to annotate.

x

formula indicating min and max values (xmin ~ xmax).

Examples


qplot_sp(flu) + spZone(425~450)
qplot_sp(flu) + spZone(460,490, fill = "green")


GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.