Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapview objects don't show captions in knitr documents #146

Open
Robinlovelace opened this issue Apr 13, 2018 · 4 comments
Open

Mapview objects don't show captions in knitr documents #146

Robinlovelace opened this issue Apr 13, 2018 · 4 comments

Comments

@Robinlovelace
Copy link

Robinlovelace commented Apr 13, 2018

# 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
Copy link
Author

Robinlovelace commented Apr 13, 2018

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

@edzer
Copy link
Member

edzer commented Apr 14, 2018

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

@Robinlovelace
Copy link
Author

It seems not...

print(mapview(franconia))

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

@tim-salabim
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants