plotMPo | R Documentation |
Plots the empirical and theoretical density, CDF, P-P plot and Q-Q plot
plotMPo(data, distr, para, histo = TRUE, breaks = "default", demp = TRUE)
data |
a vector of data values for which the distribution was fitted |
distr |
a character string specifying the base distribution (for example, "exp" for exponential base distribution). |
para |
named vector or list of the distribution parameters |
histo |
A logical to plot the histogram using the hist function |
breaks |
If "default" the histogram is plotted with the function hist with its default breaks definition. Else breaks is passed to the function hist. |
demp |
A logical to plot the empirical density on the first plot (alone or superimposed on the histogram depending of the value of the argument histo) using the density function. |
Graph of empirical versus theoretical cdf, pdf, P-P plot and Q-Q plot
Mohamed Hussein
#{ data<-rMPo(n=500,par=c(rate=2,a=2),distr="exp") plotMPo(data,distr = "exp",para=c(rate=2,a=3)) plotMPo(data,distr = "exp",para=c(rate=2,a=3),histo=FALSE) #}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.