plot_event: Plot Event

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

View source: R/ares.r

Description

Plot the daily series of event counts.

Usage

1
2
plot_event(x, df = 4, gaps = FALSE, type = "p",
	title = NULL, date.format = "%d/%m/%Y", new = TRUE, ...)

Arguments

x

a quoted string with the name of the counts variable

df

an integer with the degrees of freedom of the spline. If set to 0, no line is plotted

gaps

a logical indicating whether .ares.selection should be honoured

type

a string indicating the type of graphic. Use "p" for points and "l" for line. Default is "p". See plot

title

a string supplying a title for the graphic. If NULL, an automatic title is generated

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 and plot_pollutant are essentially the same, only some default options differ. There are two of them for convenience only.

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

Schwartz, J., Spix, C., Touloumi, G. et al. (1996) Methodological issues in studies of air pollution and daily counts of deaths or hospital admissions. J Epidemiol. Community Health 50 (suppl 1), S12–S18.

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

Peng, R., Dominici, F. (2008) Statistical methods for environmental epidemiology with R.

See Also

plot,smooth.spline,setup

Examples

1
2
3
data(admrio)
setup(admrio,"date")
plot_event("resp5",df=7)

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