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

legend.hist = TRUE in tm_bubbles prints HEX codes of color palette #557

@IvanPalm

Description

@IvanPalm

I have recently updated to r-tmap 3.3_1 via conda-forge channel to overcome a previous known issue #524, and I just noticed that another minor issue emerged in this latest version: displaying the histogram on the legend of bubble charts causes the print of the color palette hex codes.

library(tmap)
data("World")

tm_shape(World) +
    tm_borders() +
    tm_bubbles(col = "pop_est",
               size = "area",
               legend.hist = TRUE)

I guess this is an easy fix, maybe just a print() command left uncommented somewhere.
It would be great getting that nice feature back to work without undesired prints.

Screenshot from 2021-03-24 14-46-07

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