pretty.su | R Documentation |
Divide a range of values into equally spaced divisions. End points are given as output.
pretty.su(x, nint = 5)
x |
A vector of values. |
nint |
Number of intervals required. |
This is also used for the plotting of histogram in the histsu
function.
A vector of endpoints dividing the data into equally spaced regions.
Steve Su
pretty
# Generate random numbers from normal distribution:
junk<-rnorm(1000,2,3)
# Cut them into 7 regions, 8 endpoints.
pretty.su(junk,7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.