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

v4 fails with non standard column names #758

@Robinlovelace

Description

@Robinlovelace

As illustrated below

library(devtools)
load_all()
data(World,metro,land)

World$`Unusual column name` = World$HPI

# Test in v4:
tm_shape(World) +
	tm_polygons("Unusual column name")
# Error: Visual values used for the variable, "fill" of layer function "tm_polygons" are incorrect.

# Test in v3:
remotes::install_version("tmap", version = "3.3")
detach("package:tmap", unload = TRUE)
library(tmap)

World$`Unusual column name` = World$HPI
tm_shape(World) +
	tm_polygons("Unusual column name")

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