这是indexloc提供的服务,不要输入任何密码
Skip to content

setting component.position & limit tm_layout #1137

@Nowosad

Description

@Nowosad

I've tried to use component.position of tm_layout to place all of the components in the same place -- but it seems not to work. Reprex:

library(tmap)
data("land")
tm_shape(land[1,]) +
  tm_raster() +
  tm_scalebar() +
  tm_layout(component.position = tm_pos("left", "center"))
#> [plot mode] fit legend/component: Some legend items or map compoments do not
#> fit well, and are therefore rescaled.
#> ℹ Set the tmap option `component.autoscale = FALSE` to disable rescaling.
#> Scale bar set for latitude km and will be different at the top and bottom of the map.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help wantedLayoutIssues related to map layout (including many maps, facets, positions, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions