osmplotr icon indicating copy to clipboard operation
osmplotr copied to clipboard

How to use the maps in RMarkdown

Open maelle opened this issue 6 years ago • 2 comments

I am sorry if I missed something in the docs. To know how to integrate a map in an RMarkdown document, I had to look at the source of vignettes. Is the solution used in vignettes the simplest one? Then, is it documented somewhere? And last, could it be simplified? E.g. in order to be able to use maps like magick objects.

maelle avatar Jul 11 '18 06:07 maelle

This is a great idea that i should and will definitely look into further. They could be used just like any ggplott2 objects via the standard print method, but that's not really encouraged because printing like that can take literally minutes. But nor do i really document that, yet of course there is a need to incorporate maps within markdown docs, and that need needs to be addressed through documentation. I'll definitely attend to this issue. Thanks!

mpadge avatar Jul 11 '18 13:07 mpadge

For the record I really like how magick does that so you could maybe "just" return a magick object when no device is given?

maelle avatar Jul 11 '18 13:07 maelle