grid.pretty {grid}R Documentation

Generate a Sensible ("Pretty") Set of Breakpoints

Description

Produces a pretty set of approximately n breakpoints within the range given.

This is a direct interface to R's graphical engine GEpretty() function, which also underlies base graphics' package axis(), axTicks(), etc.

Usage

grid.pretty(range, n = 5)

Arguments

range

a numeric vector of length at least two, as e.g., returned by range().

n

a non-negative integer specifying the approximate number of breakpoints to be produced.

Value

A numeric vector of “pretty” breakpoints.

Author(s)

Paul Murrell


[Package grid version 4.3.0 Index]