| asp_ratio | R Documentation |
Computes the aspect ratio as width divided by height, or columns divided by rows.
asp_ratio(x)
x |
A |
A numeric scalar giving the aspect ratio.
library(terra)
x <- rast(system.file("tiff/elev.tiff", package = "rasterpic"))
plot(x)
asp_ratio(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.