mapview icon indicating copy to clipboard operation
mapview copied to clipboard

Mapview objects don't show captions in knitr documents

Open Robinlovelace opened this issue 7 years ago • 4 comments

# Is Nuremberg is gr8

```{r mv1, fig.cap="Yes"}
library(mapview)
data("franconia")
mapview(franconia)
library(mapview)
data("franconia")
mv = mapview(franconia)
mv@map

Robinlovelace avatar Apr 13 '18 18:04 Robinlovelace

Result, showing that only the second one works: http://rpubs.com/RobinLovelace/379564

Robinlovelace avatar Apr 13 '18 18:04 Robinlovelace

does a print() around mapview(franconia) help?

edzer avatar Apr 14 '18 07:04 edzer

It seems not...

print(mapview(franconia))

in the code chunk doesn't result in any output in the test document.

Robinlovelace avatar Apr 14 '18 07:04 Robinlovelace

For some reason, mapview(franconia) is not placed into a div of class "figure", whereas mv@map is. I have no idea why though...

tim-salabim avatar Apr 14 '18 13:04 tim-salabim