overlapDensity {DAAG} | R Documentation |

## Overlapping Density Plots

### Description

Densities for two distinct samples are estimated and plotted.

### Usage

```
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), ...)
```

### Arguments

`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 |

### Author(s)

J.H. Maindonald

### See Also

`t.test`

### Examples

```
attach(two65)
overlapDensity(ambient,heated)
t.test(ambient,heated)
```

*DAAG*version 1.25.6 Index]