nos.ecdf: nos.ecdf text-based plot of an empirical CDF.

Description Usage Arguments Note Author(s) See Also Examples

View source: R/NostalgiR.R

Description

Plots a text-based empirical cumulative distribution function.

Usage

1
2
nos.ecdf(data, xlab = NULL, ratio = 0.25, width = round(options()$width *
  0.8), height = round(ratio * width), pch = "o")

Arguments

data

A numeric vector containing the values to be plotted. NA and NaN are allowed, but are removed for the plot. Infinities will cause an error.

xlab

Label of the x-axis of the plot.

ratio

Coefficient that controls the aspect ratio of the plot.

width

Width of the plot in points.

height

Height of the plot in points.

pch

A single-character plot symbol.

Note

Due to rounding to a relatively crude grid results can only be approximate. The equally spaced axis ticks, for example, may be non-equally spaced in the plot. Further, due to the crude grid also there might be several points per character. The function uses the same plotting symbol no matter how many points coincide on one character position.

Author(s)

Hien D. Nguyen

See Also

ecdf, plot and txtplot.

Examples

1
2
3
4
5
6
7
## Plot the empirical CDF of 10 random standard normal points with 'o' shaped points.
data <- rnorm(10)
nos.ecdf(data)

## Plot the empirical CDF of 100 random stanard normal points with '*' shaped points
data <- rnorm(100)
nos.ecdf(data,pch='*')

NostalgiR documentation built on May 2, 2019, 2:45 p.m.