cfplot: Cumulative frequency plot

Description Usage Arguments Author(s) Examples

View source: R/MTfuncs_all.R

Description

Produces an empirical cumulative frequency (total) plot of up to five vectors (this can be biggerized)

Usage

1
2
3
cfplot(a, b = NULL, c = NULL, d = NULL, e = NULL, lty = 0, lwd = 1,
  col = 1, xlab = "", ylab = "Cumulative Frequency", main = "",
  labels = NULL, showN = TRUE, yinfl = 1, ...)

Arguments

a

Input vector

b

Input vector

c

Input vector

d

Input vector

e

Input vector

lty

Line type. Accepts one value or a vector of values for each line. Specifying zero will automatically generate one line type for each line.

lwd

Line width. Accepts one value or a vector of values for each line. Specifying zero will automatically generate one line width for each line.

col

Line color. Accepts one value or a vector of values for each line. Specifying zero will automatically generate one line color for each line.

xlab

Just like usual

ylab

Just like usual

main

Just like usual

labels

A vector of labels for the legend.

showN

Whether to include sample sizes in the legend. Defaults to TRUE.

yinfl

Inflation factor for determining plotting window size. Setting yinfl=1 will use the maximum frequency value. Setting it slightly higher allows more space for a legend.

...

Additional plotting arguments

Author(s)

Matt Tyers

Examples

1
2
3
4
5
a <- rnorm(100)
b <- rnorm(100)
c <- rnorm(100,1,1)
d <- rnorm(100,0,2)
cfplot(a,b,c,d,labels=c("apples","bananas","cucumbers","durians"),lty=1,col=1:4)

mbtyers/MTfuncs documentation built on May 22, 2017, 12:16 a.m.