[R] How to save google map in r ?

Bert Gunter bgunter@4567 @end|ng |rom gm@||@com
Sun Nov 17 19:12:16 CET 2019

Please use search facilities before posting such questions here.

I searched on "How to save google map in R" at rseek.org and got many
relevant hits.

If you have *already* done this, you should tell us why what you got did
not suffice.


Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Sun, Nov 17, 2019 at 1:48 AM Kristi Glover <kristi.glover using hotmail.com>

> Hi R users,
> I am struggling to save the map with georeferenced (TIFF) that was
> imported from google map. I would be very grateful with your input. How can
> I save this image and reuse it when I need? I used the following code
> library(ggmap)
> library(mapproj)
> map <- get_map(location = 'Europe', zoom = 4)
> ggmap(map)
> writeRaster(map, filename = "texting.tif")
> but got the following message
> "Error in (function (classes, fdef, mtable)  :
>   unable to find an inherited method for function ‘writeRaster’ for
> signature ‘"gg", "character"’"
> thanks
>         [[alternative HTML version deleted]]
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]

More information about the R-help mailing list