yPretty: Sets up tick marks for an axis for a graph with an arithmetic...

View source: R/yPretty.R

yPrettyR Documentation

Sets up tick marks for an axis for a graph with an arithmetic scale which starts at zero

Description

Axis tick marks that run from zero to some specified maximum, creates about 4 to 8 ticks marks.

Usage

yPretty(yMax)

Arguments

yMax

A numeric value for the maximum value to be plotted, it must be >0

Value

yTicks A numeric vector representing the values for each of the tick marks

Examples

yTicks <- yPretty(7.8)
yTicks <- yPretty(125)

USGS-R/EGRET documentation built on Feb. 9, 2024, 5:30 p.m.