Description Usage Arguments Value Examples
A specialised front-end to the traditional graphics function, symbols
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | circles(x, ...)
## S4 method for signature 'numeric'
circles(
x,
y,
radii = 1,
maxradius = 0.75,
fg = colour,
colour = color,
color = "black",
bg = fill,
fill = "transparent",
add = TRUE,
xpd = NA,
...
)
## S4 method for signature 'xy'
circles(x, ...)
## S4 method for signature 'formula'
circles(x, data = parent.frame(2), radii = 1, ...)
|
x, y |
any of the forms in which points in a scatterplot may be specified |
... |
additional arguments passed on to methods |
radii |
numeric: radii of the circles (relative, must be non-negative) |
maxradius |
absolute value of the maximum radius of the circles, in centimetres |
fg, colour, colour |
alternative specification names for circumference colours; may be a palette function |
bg, fill |
alternative names for the interior colours to use for the circles; may be a palette |
add |
logical: add to an existing plot, or make a new one? |
xpd |
graphics parameter |
invisible null value
1 2 3 4 5 | z <- with(roundTrip, setNames(complex(real = Longitude, imaginary = Latitude), Locality))
plot(z, asp = 1, pch = 20, cex = 0.7, xlab = "Longitude", ylab = "Latitude")
lines(Oz, col = alpha("dark green", 0.5))
text(z, labels = names(z), pos = avoid(z), cex = 0.7)
circles(Latitude ~ Longitude, roundTrip, radii = sqrt(Population), fill = "pink")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.