Skip to content

tm_crs and raster data #13

@Nowosad

Description

@Nowosad

@mtennekes, have you considered moving raster.warp to the tm_crs function as one of the arguments? It seems like a good home for it, and a little bit easier to explain than tm_options.

See https://tmap.geocompx.org/map-projections#raster-data for examples.

tm_shape(worldelevation) +
  tm_raster("worldelevation.tif", 
            col.scale = tm_scale(values = terrain.colors(8))) +
  tm_crs("EPSG:8857") +
  tm_options(raster.warp = FALSE)

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