View source: R/function_multiplication.R
coord_pg | R Documentation |
Calculate coordinates of polygon vertices
coord_pg(nb_vertice)
nb_vertice |
number of polygon segments |
return coordinates of polygon vertices
library(dplyr) library(ggplot2) poly <- coord_pg(3) ggplot()+ geom_point(data = poly, aes(x = x, y = y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.