View source: R/college_plots.R
centroid | R Documentation |
Finds the centroid of a triangle
centroid(x1, x2, x3, y1, y2, y3)
x1 |
first x coord |
x2 |
second x coord |
x3 |
third x coord |
y1 |
first y coord |
y2 |
second y coord |
y3 |
third y coord |
a numeric vector length 2 with the xy coord of the centroid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.