circles: Draw circles on a graphical display

Description Usage Arguments Value Examples

Description

A specialised front-end to the traditional graphics function, symbols

Usage

 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, ...)

Arguments

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

Value

invisible null value

Examples

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")

BillVenables/WWRGraphics documentation built on Feb. 1, 2021, 12:13 p.m.