-
Notifications
You must be signed in to change notification settings - Fork 125
Description
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.
Generated with the Rmd in attach:
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