powered by
defined a triangle by three points
triangle(xy = c(0, 0, 1, 0, 0, 1))
a matrix with xy coordinates
coordinates of the three points defining a triangle
# triangle coordinates library(ggVennDiagram) library(sf) triangle() # plot a new triangle triangle(c(-1,0,1,0,0,2)) %>% st_linestring() %>% plot()
Run the code above in your browser using DataLab