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

Reversing the legends changes the entire distribution of classes, colors and charts #1147

@gcamaro

Description

@gcamaro

A question regarding the legends: by default, the smallest values ​​are always at the top of the legends; I have received requests from reviewers to change this and leave the largest value at the top; when using reverse = TRUE in tm_legend, the entire legend is changed, including the distribution of classes and colors, affecting the histograms or donuts (for example). Is there a way to only show the largest values ​​at the top without changing the entire visualization of the classes?

Default order
This is the right color legend and proportion

Image

Reverse order:
The order of the values ​​was correct, but not just the position in the legend was changed, but the entire legend.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    LegendsIssues related to legends

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions