dkahle / dkahle/ggmap

custom zoom from ggmap

Open
#291 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
778
Forks
234
PR merge metrics
No merged PRs in 30d

Description

I couldn't quite figure out how to customize the map extent from a Google map:

I'd like the map extent to just surround the color overlay in the middle. in get_googlemaps this is scale 8, and scale 9 is zoomed in too far.

My code is:
ggmap( map ) +
geom_sf( data=nr , fill=NA , color="Darkred" , cex=1.5 , lty=2 , inherit.aes = F) +
geom_tile( data=pred , aes( Longitude , Latitude , fill=Estimate ) , color="NA" , inherit.aes = F) +
scale_fill_viridis( option="A" )

![image](https://user-images.githubusercontent.com/32649719/67309539-0a9ad080-f4ca-11e9-993a-0b2238beab5f.png)

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.