qqline2 | R Documentation |

Adds a line to a quantile-quantile plot for two datasets, from `stats::qqplot()`

.
(The available `stats::qqline()`

function works mainly for
`stats::qqnorm()`

, with one sample being theoretical quantiles.)

qqline2(x, y, probs = c(0.25, 0.75), qtype = 7, ...)

`x` |
The first sample |

`y` |
The second sample. |

`probs` |
numeric vector of length two, representing probabilities. Corresponding quantile pairs define the line drawn. |

`qtype` |
the |

`...` |
graphical parameters. |

Intercept and slope of the line.

`stats::qqline()`

, `stats::qqplot()`

x <- rchisq(500, 3) y <- rgamma(730, 3, 1/2) qqplot(x, y) qqline2(x, y)

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.