plot_tiltedmaps {layer} | R Documentation |
Tilt raster and sf data
Description
Takes tilted maps and plots them with ggplot.
Usage
plot_tiltedmaps(
map_list,
layer = NA,
palette = "viridis",
color = "grey50",
direction = 1,
begin = 0,
end = 1,
alpha = 1
)
Arguments
map_list |
sf or terra/stars/raster object. |
layer |
vector or list of names of each column in tilted sf object that should be used for coloring |
palette |
vector of palettes provided by the viridis and scico packages for rasters |
color |
a single color applied multiple times or a vector of color strings for points or linestrings |
direction |
|
begin |
vector of the of the start of interval the palette to sample colours from for viridis and scico color palettes |
end |
vector of the of the end of interval the palette to sample colours from for viridis and scico color palettes |
alpha |
Value
A ggplot
object with stacked maps.
Examples
# tilt data
tilt_landscape_1 <- tilt_map(landscape_1)
tilt_landscape_2 <- tilt_map(landscape_2, x_shift = 50, y_shift = 50)
# plot
map_list <- list(tilt_landscape_1, tilt_landscape_2)
plot_tiltedmaps(map_list, palette = "turbo")
[Package layer version 0.0.3 Index]