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

Problem with map "titles" in interactive mode in knitted Markdown to html #441

@lbusett

Description

@lbusett

Hi,

I am encountering a problem while trying to knit a rmarkdown including interactive tmap maps to html. In practice, if I include multiple r chunks including faceted maps, the "titles" on the top left corner are somehow "collated" in the maps of the first chunk, as in the picture below.

image

Generated with the Rmd in attach:

test_tmap_leg_rmd.zip

Note that all seems to work properly if I use tmap_mode("plot"). I am also reasonably sure that it was working properly some versions ago, but unfortunately can not be more specific.

On a side note: Is there any way to manually set the "legend names" in the different facets? They seem to originate from the "names" attribute of the input stars object. However, sometimes it could be useful to set them manually (for example, to plot different bands of a "RasterStack" object containing different variables, which therefore have different measurement units/legends).
I think that before the "switch" to stars use, the legend names where originated based on the names attributes of the rasterStack, and therefore could "vary" with band.

Thanks in advance,

Lorenzo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions