| apc.plot {Epi} | R Documentation |
This function plots the estimates created by apc.fit in a single
graph. It just calls apc.frame after computing some sensible
values of the parameters, and subsequently plots the estimates using
apc.lines.
apc.plot(obj, r.txt = "Rate", ...)
obj |
An object of class apc. |
r.txt |
The text to put on the vertical rate axis. |
... |
Additional arguments passed on to apc.lines. |
A numerical vector of length two, with names
c("cp.offset","RR.fac"). The first is the offset for the cohort
period-axis, the second the multiplication factor for the rate-ratio
scale. This should be supplied for the parameter frame.par to
apc.lines if more sets of estimates is plotted in the
same graph.
Bendix Carstensen, Steno Diabetes Center, http://www.pubhealth.ku.dk/~bxc
data( lungDK ) attach( lungDK ) apc1 <- apc.fit( A=Ax, P=Px, D=D, Y=Y/10^5 ) fp <- apc.plot( apc1 ) apc.lines( apc1, frame.par=fp, drift=1.01, col="red" ) for( i in 1:11 ) apc.lines( apc1, frame.par=fp, drift=1+(i-6)/100, col=rainbow(12)[i] )