
Some useful polygon coordinates
x_stary_star
x_cross
y_cross
x_hexagon
y_hexagon
x_airplane
y_airplane
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.
# 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