خرید بک لینک

Vote count: 0

I need to plot my ggplot2 data onto a terrain maptype using ggmap. My data ( geom_points for stream samples) will not fit into the frame. "osm" fits perfect but does not have terrain. "stamen" will not load due to the pngjpeg error. Google would be best. Here are the three methods I have researched and tried to use to fix the problem.

# Messing with location and zoom    
map = get_map(location = box, source="google",maptype="terrain",color="bw")

#Method 1
box = make_bbox(lon =c(-117.65166, -117.07805) , lat =c(47.74675, 48.11684), f = .05)

#Method 2
scale_x_continuous(limits = c(-117.7, -117.06), expand = c(0, 0)) +
scale_y_continuous(limits = c(47.74675, 48.21684), expand = c(0, 0))

#Method 3
zoom=11 #too close, zoom = 10 #too far

#Method 4 using the means
lat = c(47.7975, 48.1684)                
lon = c(-117.65166 , -117.07805 )   
map2 = get_map(location = c(lon = mean(lon), lat = mean(lat)).....

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 9 مرداد 1395 ساعت: 2:40

صفحه بندی