Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pretty.su

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

Examples

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

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

GLDEX

Fitting Single and Mixture of Generalised Lambda Distributions (RS and FMKL) using Various Methods

v2.0.0.7
GPL (>= 3)
Authors
Steve Su, with contributions from: Diethelm Wuertz, Martin Maechler and Rmetrics core team members for low discrepancy algorithm, Juha Karvanen for L moments codes, Robert King for gld C codes and starship codes, Benjamin Dean for corrections and input in ks.gof code and R core team for histsu function.
Initial release
2020-02-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.