coord_pg: Calculate coordinates of polygon vertices

View source: R/function_multiplication.R

coord_pgR Documentation

Calculate coordinates of polygon vertices

Description

Calculate coordinates of polygon vertices

Usage

coord_pg(nb_vertice)

Arguments

nb_vertice

number of polygon segments

Value

return coordinates of polygon vertices

Examples

library(dplyr)
library(ggplot2)
poly <- coord_pg(3)
ggplot()+
geom_point(data = poly, aes(x = x, y = y))

mhanf/multiplyR documentation built on May 17, 2022, 7:41 a.m.