View source: R/type_segments.R
type_segments | R Documentation |
Type function for plotting line segments.
type_segments()
Contrary to base segments
, line segments in
tinyplot must be specified using the xmin
, ymin
,xmax
, and ymax
arguments.
# "segments" type convenience character string
tinyplot(
xmin = c(0,.1), ymin = c(.2,1), xmax = c(1,.9), ymax = c(.75,0),
type = "segments"
)
# Same result with type_segments()
tinyplot(
xmin = c(0,.1), ymin = c(.2,1), xmax = c(1,.9), ymax = c(.75,0),
type = type_segments()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.