acid_geom_abline: Reference line

acid_geom_ablineR Documentation

Reference line

Description

Add a horizontal (using yintercept) or vertical (using xintercept) reference line.

Usage

acid_geom_abline(xintercept = NULL, yintercept = NULL)

Arguments

xintercept, yintercept

numeric(1). Value denoting x- or y-axis cutoff. Use either xintercept or yintercept, but not both.

Value

Layer/ggproto.

Note

Updated 2023-08-10.

Examples

## x-axis line.
geom <- acid_geom_abline(xintercept = 1L)
print(geom)

## y-axis line.
geom <- acid_geom_abline(yintercept = 1L)
print(geom)

acidgenomics/minimalism documentation built on April 1, 2024, 10:34 a.m.