overlapDensity | R Documentation |
Densities for two distinct samples are estimated and plotted.
overlapDensity(x0, x1, ratio = c(0.05, 20), ratio.number = FALSE,
plotvalues = c("Density", "Numbers"), gpnames = c("Control", "Treatment"),
cutoffs = c(lower = TRUE, upper = TRUE), bw = FALSE,
xlab = "Score", ylab = NULL,
col = 1:2, lty = 1:2, lwd = c(1, 1), ...)
overlap.density(x0, x1, ratio = c(0.05, 20), ratio.number = FALSE,
plotvalues = c("Density", "Numbers"), gpnames = c("Control", "Treatment"),
cutoffs = c(lower = TRUE, upper = TRUE), bw = FALSE,
xlab = "Score", ylab = NULL,
col = 1:2, lty = 1:2, lwd = c(1, 1), ...)
x0 |
control group measurements |
x1 |
treatment group measurements |
ratio |
if not |
ratio.number |
If TRUE (default), then |
plotvalues |
If set to |
gpnames |
Names of the two samples |
cutoffs |
logical vector, indicating whether density estimates should be truncated below (lower=TRUE) or above (upper=TRUE) |
bw |
logical, indicates whether to overwrite with a gray scale plot |
xlab |
Label for x-axis |
ylab |
Label for y-axis |
col |
standard color parameter |
lty |
standard line type preference |
lwd |
standard line width preference |
... |
Other parameters to be passed to |
J.H. Maindonald
t.test
attach(two65)
overlapDensity(ambient,heated)
t.test(ambient,heated)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.