The R Project SVN R

Rev

Rev 27447 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27447 Rev 27653
Line 65... Line 65...
65
 
65
 
66
## Discrete Distribution Plot:
66
## Discrete Distribution Plot:
67
plot(table(rpois(100,5)), type = "h", col = "red", lwd=10,
67
plot(table(rpois(100,5)), type = "h", col = "red", lwd=10,
68
     main="rpois(100,lambda=5)")
68
     main="rpois(100,lambda=5)")
69
 
69
 
70
## Simple quantiles/ECDF, see ecdf() {library(stepfun)} for a better one:
70
## Simple quantiles/ECDF, see ecdf() {library(stats)} for a better one:
71
plot(x <- sort(rnorm(47)), type = "s", main = "plot(x, type = \"s\")")
71
plot(x <- sort(rnorm(47)), type = "s", main = "plot(x, type = \"s\")")
72
points(x, cex = .5, col = "dark red")
72
points(x, cex = .5, col = "dark red")
73
}
73
}
74
\keyword{hplot}
74
\keyword{hplot}