symbols: gsplot symbols

View source: R/symbols.R

symbolsR Documentation

gsplot symbols

Description

Add single or multiple symbolsangles to the plotting region. See symbols for more details.

Usage

symbols(object, ...)

Arguments

object

gsplot object

...

Further graphical parameters may also be supplied as arguments. See 'Details'.

Details

Additional graphical parameter inputs:

  • x vector indicating position(s) of the symbol(s) on the x-axis

  • y vector indicating position(s) of the symbol(s) on the y-axis

  • circles vector of the radii of the circle(s)

  • squares vector of the length of the sides of the square(s)

  • rectangles matrix with two columns: width(s) and height(s) of the rectangle(s)

  • stars matrix of at least three columns with lengths of the rays from the center of the star(s)

  • thermometers matrix with three (or four) columns indicating width (column 1), height (column 2), and proportion filled (column 3) of the thermometers

  • ... see symbols for more details on graphical parameters

See Also

symbols

Examples


gs <- gsplot() %>%
   symbols(x=airquality$Wind, y=airquality$Temp, 
       circles=airquality$Ozone, add=TRUE) %>%
   title(main="Ozone", xlab="Wind", ylab="Temperature")
gs

gs <- gsplot() %>%
   symbols(x=c(1,2,3), y=c(1,1,1), 
       thermometers=matrix(c(1,2,3, 4,4,4, 
       0.5,0.25,0.75), ncol=3), fg="red", 
       add=TRUE) %>%
   title(xlab="", ylab="", xlim=c(0,4))
gs

USGS-R/gsplot documentation built on April 17, 2023, 8:45 p.m.