cd_plot {svs} | R Documentation |
Plotting a Cumulative Distribution
Description
A function for plotting a cumulative distribution.
Usage
cd_plot(
x,
inc = 0.01,
col = "darkgrey",
cex = 1,
font = 1,
family = "",
srt = -45,
pch = 20,
pcol = "black",
pbg = "white",
pcex = cex,
lcol = col,
lwd = 1,
lty = 1,
xlim = NULL,
ylim = NULL,
xlab = NULL,
ylab = NULL,
main = NULL,
sub = NULL
)
Arguments
x |
A numeric vector. |
inc |
The (numeric) increment for constructing the sequence from 0 to |
col |
The color of the line and the text labels: see |
cex |
The character expansion factor: a numberic value to specify the size of the text labels. |
font |
The font of the text labels: |
family |
The font family of the text labels: |
srt |
The rotation angle (in degrees) of the text labels. |
pch |
The plotting character for displaying points: see |
pcol |
The color of the plotting character: see |
pbg |
The background color of the plotting character: see |
pcex |
The character expansion factor of the plotting character: a numeric value to specify the size of the plotting character. |
lcol |
The color of the line: see |
lwd |
The line width of the line: a numeric value to specify the width of the line. |
lty |
The line type of the line: |
xlim |
A vector of two numeric values specifying the lower and upper limit between which to plot the horizontal axis. |
ylim |
A vector of two numeric values specifying the lower and upper limit between which to plot the vertical axis. |
xlab |
A character string for labelling of the horizontal axis. |
ylab |
A character string for labelling of the vertical axis. |
main |
A character string for the main title of the plot. |
sub |
A character string for the subtitle of the plot. |
Value
A cumulative distribution plot.
Examples
SndT_Fra <- read.table(system.file("extdata", "SndT_Fra.txt", package = "svs"),
header = TRUE, sep = "\t", quote = "\"", encoding = "UTF-8",
stringsAsFactors = FALSE)
sca_SndT_Fra <- fast_sca(SndT_Fra)
dis_SndT_Fra <- dist_wrt(sca_SndT_Fra$pos1)
cd_plot(dis_SndT_Fra)