powered by
defined a triangle by three points
triangle(xy = c(0, 0, 1, 0, 0, 1))
coordinates of the three points defining a triangle
a matrix with xy coordinates
# NOT RUN { # 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