Skip to content

tm_syle() produces strange results #1215

@jguelat

Description

@jguelat

The tm_style() function is sometimes producing strange results depending on its position in the code. I'm not totally sure if it's a bug or the desired behavior but this didn't happen with previous tmap versions.

This works well:

tm_shape(World) + tm_polygons(fill = "HPI") +
tm_style("natural") +
tm_title("Happy Planet Index") +
tm_layout(earth_boundary = TRUE, frame = FALSE) +
tm_crs("ESRI:54030")
Image

This produces strange results (outside color, earth boundary not drawn):

tm_shape(World) + tm_polygons(fill = "HPI") +
tm_title("Happy Planet Index") +
tm_layout(earth_boundary = TRUE, frame = FALSE) +
tm_style("natural") +
tm_crs("ESRI:54030")
Image

Metadata

Metadata

Assignees

Labels

DocsDocumentation issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions