callouts | R Documentation |
Add callout lines and text to a plot.
Default for adding callouts to a plot.
callouts(object, ...)
callouts.default(x, y = NULL, labels = NA, length = 0.1, angle = "auto",
cex = par()$cex, lwd = par()$lwd, lty = par()$lty, ...)
object |
gsplot object |
... |
Further graphical parameters may also be supplied as arguments. See 'Details'. |
x |
values for callout location |
y |
values for callout location |
labels |
text to be added to callout |
length |
relative (percentage of window width and height) distance for callout |
angle |
callout line angle |
cex |
passed to |
lwd |
passed to |
lty |
passed to |
Additional graphical parameter inputs:
x
numeric value for x-coordinate of callout
y
numeric value for y-coordinate of callout
labels
text to be added to callout
length
relative (percentage of window width and height) distance for callout
angle
callout line angle
gs <- gsplot()
gsNew <- points(gs, y=1, x=2, xlim=c(0,3),ylim=c(0,3),
col="blue", pch=18, legend.name="Points")
gsNew <- callouts(gsNew, 2, 1, labels='dog')
gsNew
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.