From 794d6391ed6f474238e6341a21abd887e4fddeea Mon Sep 17 00:00:00 2001 From: rhijmans Date: Sun, 10 Sep 2023 12:12:49 -0700 Subject: [PATCH] use stable terra user interface --- README.Rmd | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.Rmd b/README.Rmd index 84ffe183..325a598d 100644 --- a/README.Rmd +++ b/README.Rmd @@ -171,7 +171,7 @@ tile <- library(ggplot2) library(tidyterra) -lims <- as.double(terra::ext(tile)@ptr$vector) +lims <- as.vector(terra::ext(tile)) ggplot(remove_missing(shape_pop, na.rm = TRUE)) + geom_spatraster_rgb(data = tile, maxcell = 10e6) + diff --git a/README.md b/README.md index f197f47b..f99f4c8d 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ tile <- library(ggplot2) library(tidyterra) -lims <- as.double(terra::ext(tile)@ptr$vector) +lims <- as.vector(terra::ext(tile)) ggplot(remove_missing(shape_pop, na.rm = TRUE)) + geom_spatraster_rgb(data = tile, maxcell = 10e6) +