Unlimited learning, half price | 50% off
Get 50% off unlimited learning

loon.ggplot (version 1.0.1)

polygonGlyph: Polygon glyph coordinates

Description

Some useful polygon coordinates

Usage

x_star

y_star

x_cross

y_cross

x_hexagon

y_hexagon

x_airplane

y_airplane

Arguments

Format

An object of class numeric of length 10.

An object of class numeric of length 10.

An object of class numeric of length 12.

An object of class numeric of length 12.

An object of class numeric of length 6.

An object of class numeric of length 6.

An object of class numeric of length 32.

An object of class numeric of length 32.

See Also

geom_polygonGlyph

Examples

Run this code
# NOT RUN {
if(requireNamespace("grid")) {
  library(grid)
  grid.newpage()
  grid.polygon(x=(x_star + 1)/2,
               y=(1 - y_star)/2)
  grid.newpage()
  grid.polygon(x=(x_cross + 1)/2,
               y=(y_cross + 1)/2)
  grid.newpage()
  grid.polygon(x=(x_hexagon + 1)/2,
               y=(y_hexagon + 1)/2)
  grid.newpage()
  grid.polygon(x=(-x_airplane + 4)/10,
               y=(-y_airplane + 4)/10)
}
# }

Run the code above in your browser using DataLab