plot_fitted: Plot Fitted

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/ares.r

Description

Plot the observed and predicted values

Usage

1
plot_fitted(x, gaps = FALSE, date.format = "%d/%m/%Y", new = TRUE, ...)

Arguments

x

a model fitted by fit_core

gaps

a logical indicating whether .ares.selection should be honoured

date.format

a string indicating the date format for the horizontal axis. Default is dd/mm/yyyy. See strptime for more options

new

if TRUE a new graph window is opened

...

further options for plot

Details

This function produces a plot with predicted values (points) and fitted ones (line).

Value

This function does not return a value.

Author(s)

Washington Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br

References

McGullagh, P., Nelder, J. A. (1989) Generalized linear models. Chapman and Hall.

Hastie, T., Tibshirani, R. (1990) Generalized additive models. 2 ed. Chapman and Hall.

See Also

get_residuals,gam,glm

Examples

1
2
3
4
5
data(admrio)
setup(admrio,"date")
f <- resp5~s(time)+weekdays+s(tmpmax)+s(humid)
m <- fit_core(f)
plot_fitted(m)

wjunger/ares documentation built on Dec. 23, 2021, 5:17 p.m.