# set up
library(terra)Warning: package 'terra' was built under R version 4.4.3
terra 1.8.42
library(ggpubr)Warning: package 'ggpubr' was built under R version 4.4.3
Loading required package: ggplot2
Attaching package: 'ggpubr'
The following object is masked from 'package:terra':
rotate
library(ggplot2)
url <- 'https://raw.githubusercontent.com/mikejohnson51/csu-ess-330/refs/heads/main/resources/foco-elev-cm.tif'
vsi_url <- paste0("/vsicurl/", url)
elev_cm <- rast(vsi_url)