
Produces a plot of the area-under-the-curve for the mortality data
lplot(n, x, add = F)
the length of the vector Defaults to TRUE.
the vector arguement.
whether to add lines. Default is FALSE
# NOT RUN {
m1 <- Mortality$D.Male[which(Mortality$Year == 2008)]
m2 <- Mortality$E.Male[which(Mortality$Year == 2008)]
male.1 <- m1/m2
male.2 <- log(male.1[!is.na(male.1)])
lplot(1:length(male.2),male.2)
lplot(1:length(male.2),male.2,add=TRUE)
# }
Run the code above in your browser using DataLab