Skip to content

Size adjustment with argument text.size of function tm_scalebar doesn't work #1217

@BrentWHR

Description

@BrentWHR

I keep getting the following error:
Error in if (tail(xright, 1) > W) { : missing value where TRUE/FALSE needed

Reproducible example:

library(tmap)
s <- tm_shape(World, crs = "+proj=eqearth")
s + tm_polygons() # works
s + tm_polygons() + tm_scalebar(text.size = 11) # does not work

This is for version 4.2

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