Usage Arguments See Also Examples
1 |
id |
|
start |
|
stop |
|
col |
|
lty |
|
lwd |
|
xlim |
|
xlab |
|
ylab |
|
... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (id, start, stop, col = 1, lty = 1, lwd = 2, xlim, xlab = "",
ylab = "", ...)
{
if (missing(xlim))
xlim <- c(min(start), max(stop))
N <- length(start)
plot(0, 0, type = "n", ylim = c(1, N/2), xlim = xlim, xlab = "",
ylab = "", ...)
nix <- lapply(1:N, function(i) {
segments(0, id[i], start[i], id[i], col = "lightgray",
lty = lty, lwd = lwd)
segments(start[i], id[i], stop[i], id[i], col = col,
lty = lty, lwd = lwd)
})
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.