Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

triangle

defined a triangle by three points


Description

defined a triangle by three points

Usage

triangle(xy = c(0, 0, 1, 0, 0, 1))

Arguments

xy

coordinates of the three points defining a triangle

Value

a matrix with xy coordinates

Examples

# triangle coordinates
library(ggVennDiagram)
library(sf)
triangle()

# plot a new triangle
triangle(c(-1,0,1,0,0,2)) %>% st_linestring() %>% plot()

ggVennDiagram

A 'ggplot2' Implement of Venn Diagram

v1.1.0
GPL-3
Authors
Chun-Hui Gao [aut, cre] (<https://orcid.org/0000-0002-1445-7939>), Guangchuang Yu [ctb] (<https://orcid.org/0000-0002-6485-8781>), Adrian Dusa [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.