pretty.su: An alternative to the normal pretty function in R.

pretty.suR Documentation

An alternative to the normal pretty function in R.

Description

Divide a range of values into equally spaced divisions. End points are given as output.

Usage

pretty.su(x, nint = 5)

Arguments

x

A vector of values.

nint

Number of intervals required.

Details

This is also used for the plotting of histogram in the histsu function.

Value

A vector of endpoints dividing the data into equally spaced regions.

Author(s)

Steve Su

See Also

pretty

Examples

# Generate random numbers from normal distribution:
junk<-rnorm(1000,2,3)

# Cut them into 7 regions, 8 endpoints.
pretty.su(junk,7)


GLDEX documentation built on Aug. 21, 2023, 9:08 a.m.

Related to pretty.su in GLDEX...