Description Usage Arguments Examples
qqplot_fancy
Extends the qqplot() function by using ggplot2 for making a pretty qqplot and adding a best-fitting distribution functionality.
1 2 |
sample |
A numeric vector with the "actual" observations. |
dist |
Either (1) a string (default "normal") specifying a known distribution Or (2) another vector of theoretical/model observations. The distribution can be one of beta, exponential, gamma, log-normal, lognormal, normal, pareto, t or weibull. |
col |
(optional) A string specifying point colour. Defaults to a random colour from the ggplots color wheel. |
start |
(optional) A list of named starting/initial values for fitditr. |
xlab |
(optional) A string containing the x axis label. |
ylab |
(optional) A string containing the y axis label. |
title |
(optional) A string containing the title. |
1 2 3 4 | qqplot_fancy(rnorm(1000)) ## pretty line
qqplot_fancy(rexp(1000), "exponential") ## pretty line
qqplot_fancy(rexp(1000), rexp(1000)) ## pretty line
qqplot_fancy(rnorm(10), col = "blue") ## pretty blue line
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.