Description Usage Arguments Value Examples
Function converts distance and bearing into XY coordinates. It is useful to generate stem maps (forestry) based on field data (in forestry usually distance and bearing to a tree from a plot center are collected to define tree locations). Optionally center coordinates of the plot may be provided.
1 | circular2xy(distance, bearing, center.x = 0, center.y = 0)
|
distance |
a vector of distances. |
bearing |
a vector of bearings, in degrees (0 - 360). |
center.x |
An x coordinate of a plot center |
center.y |
An y coordinate of a plot center |
a data frame with x and y columns
1 2 3 4 | d <- runif(10,min = 0.5,max=10)
b <- runif(10,min = 0,max=360)
plot(circular2xy(d,b))
plot(circular2xy(d,b,1000,2500))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.