im.ridgeline {imageRy} | R Documentation |
Generate Ridgeline Plots from Satellite Raster Data
Description
This function generates ridgeline plots from stacked satellite imagery data.
Usage
im.ridgeline(
im,
scale,
palette = c("viridis", "magma", "plasma", "inferno", "cividis", "mako", "rocket",
"turbo")
)
Arguments
im |
A 'SpatRaster' object representing the raster data to be visualized. |
scale |
A numeric value that defines the vertical scale of the ridgeline plot. |
palette |
A character string specifying the 'viridis' color palette option to use. Available options: '"viridis"', '"magma"', '"plasma"', '"inferno"', '"cividis"', '"mako"', '"rocket"', '"turbo"'. |
Details
Ridgeline plots are useful for analyzing temporal variations in raster-based satellite imagery. This function extracts raster values and visualizes their distribution across layers.
Value
A 'ggplot' object displaying the ridgeline plot.
References
See also 'im.import()', 'im.ggplot()'.
See Also
[GitHub Repository](https://github.com/ducciorocchini/imageRy/)
Examples
library(terra)
library(ggridges)
library(ggplot2)
# Create a 5-layer raster
r <- rast(nrows = 10, ncols = 10, nlyrs = 5)
values(r) <- runif(ncell(r) * 5)
# Generate ridgeline plot
im.ridgeline(r, scale = 2, palette = "viridis") + theme_minimal()
[Package imageRy version 0.3.0 Index]