Learn R Programming

EGRET (version 3.0.9)

yPretty: 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)

Value

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

Arguments

yMax

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

Examples

Run this code
yTicks <- yPretty(7.8)
yTicks <- yPretty(125)

Run the code above in your browser using DataLab