Skip to content

Consider using tidyterra for plotting #434

@AndyBunn

Description

@AndyBunn

How could the content be improved?

The tidyterra library has a nice geom for SpatRaster objects. E.g.,

library(tidyterra)
DSM_HARV <-
  rast("/data/NEON-DS-Airborne-Remote-Sensing/HARV/DSM/HARV_dsmCrop.tif")
ggplot() + geom_spatraster(data = DSM_HARV , aes(fill = HARV_dsmCrop)) +
  scale_fill_viridis_c()

This would keep students from having to convert to data.frame or tibble for geom_raster

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions