set_axis_limits: Set Viewing Limits on a Plot

View source: R/plot.R

set_axis_limitsR Documentation

Set Viewing Limits on a Plot

Description

set_limits() sets limits in the viewing panel of a ggplot object.

Usage

set_axis_limits(gg_obj, xlim = NULL, ylim = NULL)

Arguments

gg_obj

A ggplot object

xlim

The limits for the x axis, in the scale of the x axis

ylim

The limits for the y axis, in the scale of the y axis

Value

The modified ggplot object


jesse-smith/coviData documentation built on Jan. 14, 2023, 11:08 a.m.