Description Usage Arguments References Examples
View source: R/stat_pp_point.R
Draws probabilityprobability points.
1 2 3 4 5 6 7 8 9 10 11 12 13 
mapping 
Set of aesthetic mappings created by 
data 
The data to be displayed in this layer. There are three options: If A A 
geom 
The geometric object to use display the data 
position 
Position adjustment, either as a string, or the result of a call to a position adjustment function. 
na.rm 
If 
show.legend 
logical. Should this layer be included in the legends?

inherit.aes 
If 
distribution 
Character. Theoretical probability distribution function
to use. Do not provide the full distribution function name (e.g.,

dparams 
List of additional parameters passed on to the previously
chosen 
detrend 
Logical. Should the plot objects be detrended? If 
... 
Other arguments passed on to 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23  # generate random Normal data
set.seed(0)
smp < data.frame(norm = rnorm(100))
# Normal PP plot of Normal data
gg < ggplot(data = smp, mapping = aes(sample = norm)) +
stat_pp_point() +
labs(x = "Probability Points", y = "Cumulative Probability")
gg
# Shifted Normal PP plot of Normal data
dp < list(mean = 1.5)
gg < ggplot(data = smp, mapping = aes(sample = norm)) +
stat_pp_point(dparams = dp) +
labs(x = "Probability Points", y = "Cumulative Probability")
gg
# Normal PP plot of mean ozone levels (airquality dataset)
dp < list(mean = 38, sd = 27)
gg < ggplot(data = airquality, mapping = aes(sample = Ozone)) +
stat_pp_point(dparams = dp) +
labs(x = "Probability Points", y = "Cumulative Probability")
gg

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.