File: trwlboot.q

package info (click to toggle)
sm 2.2-6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,540 kB
  • sloc: f90: 259; ansic: 21; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
with(trawl, {
ind <- (Year == 1 & Zone == 1 & !is.na(Depth))
par(mfrow=c(1,2))
sm.regression(Depth[ind], Score1[ind], h = 5,
        xlab="Depth", ylab="Score1")
plot(Depth[ind], Score1[ind], type = "n",
        xlab="Depth", ylab="Score1")
for (i in 1:100)
  	sm.regression(Depth[ind], sample(Score1[ind]),
  		h = 5, col = 6, lty = 2, add = TRUE)
sm.regression(Depth[ind], Score1[ind], h = 5, add = TRUE)
par(mfrow=c(1,1))
})