CITAN (version 2011.08-1)

plot.citfun: Draw the citation function of a given vector

Description

The citation function of a vector $x=(x_1,\dots,x_n)$ is a mapping $$\pi(y)=x_{(n-\lfloor y+1\rfloor)}$$ defined for $0\le y

Usage

plot.citfun(x, ..., xmarg=10, add=F, xlab="", ylab="", main="",
    ylim=c(0, max(x)), xlim=c(0, length(x) + xmarg))

Arguments

x
non-negative numeric vector.
xmarg
x-margin on the right.
add
logical; indicates whether to start a new plot, TRUE by default.
ylim,xlim,xlab,ylab,main,...
additional graphical parameters.

See Also

curve.add.rp, curve.add.lp, plot.default

Examples

Run this code
john_s <- c(11,5,4,4,3,2,2,2,2,2,1,1,1,0,0,0,0);
plot.citfun(john_s, main="Smith, John", col="red");

Run the code above in your browser using DataCamp Workspace