atan2 | R Documentation |
For Raster* objects x and y, atan2(y, x) returns the angle in radians for the tangent y/x, handling the case when x is zero. See Trig
See Math-methods
for other trigonometric and mathematical functions that can be used with Raster* objects.
atan2(y, x)
y |
Raster* object |
x |
Raster* object |
Math-methods
r1 <- r2 <- raster(nrow=10, ncol=10)
values(r1) <- (runif(ncell(r1))-0.5) * 10
values(r2) <- (runif(ncell(r1))-0.5) * 10
atan2(r1, r2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.