lsegments | R Documentation |
Creae a simple plot showing a line segment.
lsegments(
x = c(3, 7),
l = "o",
r = "c",
ticks = TRUE,
labs = 1,
add = 0,
ylim = c(-0.75, 0.25)
)
x |
The endpoints of the interval. Values larger (smaller) than 999 (-999) will be interpreted as (negative) infinity. |
l |
Indicate whether the left end point should be open ( |
r |
Indicate whether the right end point should be open ( |
ticks |
Indicate whether to show tick marks ( |
labs |
The position for the point labels. Set to |
add |
Indicate whether the line segment should be added to an existing
plot ( |
ylim |
A vector of length 2 specifying the vertical plotting limits,
which may be useful for fine-tuning plots. The default is
|
David Diez
dlsegments
, CCP
,
ArrowLines
lsegments(c(2, 7), "o", "c", ylim = c(-0.3, 0.2))
lsegments(c(5, 7), "c", "c", ylim = c(-0.3, 0.2))
lsegments(c(4, 1000), "o", "o", ylim = c(-0.3, 0.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.