axes: Add reference lines to a ggplot

Description Usage Arguments Value

View source: R/visualization.R

Description

This is a convenience function that creates x and/or y axis reference lines that can be added to a ggplot object.

Usage

1
2
axes(axis = "xy", xintercept = 0, yintercept = 0, color = "gray",
  size = 1)

Arguments

axis

Character vector specifying the axis, either "x", "y", or "xy".

xintercept,

yintercept Numeric value.

color

Color.

size

Size.

Value

A ggplot layer or layers.


matthewkling/ecoclim documentation built on May 21, 2019, 1:04 p.m.