File: sp_comp2.q

package info (click to toggle)
sm 2.0.14-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 992 kB
  • ctags: 26
  • sloc: fortran: 133; sh: 28; makefile: 13
file content (12 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
provide.data(aircraft)
par(mfrow = c(1,2))
h <-  exp(mean(log(tapply(log(Span), Period, FUN = "hnorm"))))
ind <- (Period!=3)
sm.density.compare(log(Span)[ind], Period[ind], h = h, 
        xlab = "log(Span)", lty = c(3,2), ylim = c(0, 1.2))
legend(3.0, 1.1, c("Period 1", "Period 2"), lty = c(3,2))
ind <- (Period!=1)
sm.density.compare(log(Span)[ind], Period[ind], h = h,
        xlab = "log(Span)", lty = c(2,1), ylim = c(0, 1.2))
legend(3.0, 1.1, c("Period 2", "Period 3"), lty = c(2,1))
par(mfrow = c(1,1))