# plotDistr

From Rcmdr v2.0-2
by John Fox

##### Plot a probability density, mass, or distribution function.

This function plots a probability density, mass, or distribution function, adapting the form of the plot as appropriate.

- Keywords
- hplot

##### Usage

`plotDistr(x, p, discrete=FALSE, cdf=FALSE, ...)`

##### Arguments

- x
- horizontal coordinates
- p
- vertical coordinates
- discrete
- is the random variable discrete?
- cdf
- is this a cumulative distribution (as opposed to mass) function?
- ...
- arguments to be passed to
`plot`

.

##### Value

- Produces a plot; returns
`NULL`

invisibly.

##### Examples

```
x <- seq(-4, 4, length=100)
plotDistr(x, dnorm(x), xlab="Z", ylab="p(z)", main="Standard Normal Density")
```

*Documentation reproduced from package Rcmdr, version 2.0-2, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.