Learn R Programming

bayesforecast (version 1.0.1)

ggnorm: qqplot with normal qqline

Description

Plot the quantile-quantile plot and quantile-quantile line using ggplot.

Usage

ggnorm(y, title = NULL, add.normal = TRUE)

Arguments

y

a numeric vector or an object of the ts class containing a stationary time series.

title

a string with the plot's title.

add.normal

Add a normal density function for comparison.

Value

None. Function produces a ggplot2 graph.

Examples

Run this code
# NOT RUN {
x = rnorm(100)
ggnorm(x)

# }

Run the code above in your browser using DataLab