powered by
Plot the cumulative frequency of a data vector or matrix, showing the median and mean of the distribution.
plotCsum(x, add = FALSE, ylim = c(0, 1), xlab = "Measure", ylab = "Cumulative Proportion", ...)
vector or matrix of numeric values.
logical: if TRUE, add the cumulative frequency curve to a current plot.
TRUE
limits for the y-axis.
label for the x-axis.
label for the y-axis.
additional arguments for the plot function.
plot
Rowan Haigh, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC
local(envir=.PBSmodEnv,expr={ oldpar = par(no.readonly=TRUE) x <- rgamma(n=1000,shape=2) plotCsum(x) par(oldpar) })
Run the code above in your browser using DataLab