symbols(x, y, circles, squares, rectangles, stars, thermometers, boxplots, add = F, inches = T)
Exactly one of the arguments circles, squares, rectangles, stars, thermometers, or boxplots must be given.
Graphical parameters may also be supplied as arguments to this function (see par). In addition, the high-level graphics arguments described under par and the arguments to title may be supplied to this function.
# population of cities in US select <- c("Atlanta", "Atlantic City", "Bismarck", "Boise", "Dallas", "Denver", "Lincoln", "Los Angeles", "Miami", "Milwaukee", "New York", "Seattle") names(city.x) <- city.name names(city.y) <- city.name names(city.name) <- city.name pop <- c(426, 60, 28, 34, 904, 494, 129, 2967, 347, 741, 7072, 557) usa() # plot map of US symbols(city.x[select], city.y[select], circles = sqrt(pop), add = T) text(city.x[select], city.y[select], city.name[select], cex = size)murder <- state.x77[,"Murder"] west <- state.center$x < -95 therm <- cbind(.4, 1, murder[west]/max(murder[west])) usa(xlim = c(94, 135), ylim = c(25, 52)) symbols(state.center$x[west], state.center$y[west], thermometers = therm, inches = .5, add = T) title(main = "Murder Rates in the Western U.S.")