defined a triangle by three points
defined a triangle by three points
triangle(xy = c(0, 0, 1, 0, 0, 1))
xy |
coordinates of the three points defining a triangle |
a matrix with xy coordinates
# triangle coordinates library(ggVennDiagram) library(sf) triangle() # plot a new triangle triangle(c(-1,0,1,0,0,2)) %>% st_linestring() %>% plot()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.