Skip to content

Instantly share code, notes, and snippets.

@Nowosad
Last active January 7, 2021 17:10
Show Gist options
  • Save Nowosad/ee9b060d937cb9c1a4eaf4335af3bcc8 to your computer and use it in GitHub Desktop.
Save Nowosad/ee9b060d937cb9c1a4eaf4335af3bcc8 to your computer and use it in GitHub Desktop.
# remotes::install_github("mtennekes/tmap")
library(tmap)
library(terra)
#> terra version 1.0.7

# 1 -----------------------------------------------------------------------
elev = rast(system.file("ex/elev.tif", package = "terra"))

tm_shape(elev) +
  tm_raster(style = "cont")
#> Linking to GEOS 3.8.1, GDAL 3.1.4, PROJ 6.3.2

# 2 -----------------------------------------------------------------------
logo = rast(system.file("ex/logo.tif", package = "terra"))

tm_shape(logo) +
  tm_rgb()

Created on 2021-01-07 by the reprex package (v0.3.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment