polygon_glyph | R Documentation |
polygon coordinates scaled to (0, 1)
x_star
y_star
x_cross
y_cross
x_hexagon
y_hexagon
x_airplane
y_airplane
x_maple
y_maple
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.
An object of class numeric
of length 26.
An object of class numeric
of length 26.
geom_polygon_glyph
if(require("grid")) {
library(grid)
grid.newpage()
grid.polygon(x=(x_star + 1)/2,
y=(y_star + 1)/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 + 1)/2,
y=(y_airplane + 1)/2)
grid.newpage()
grid.polygon(x=(x_maple + 1)/2,
y=(y_maple + 1)/2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.