search for: mich_point

Displaying 1 result from an estimated 1 matches for "mich_point".

Did you mean: mich_points
2012 Mar 20
1
passing xlim to coord_map in ggplot2
I'm sure this is smack-head moment, but I haven't been able to find an example of this on Nabble or SO, so thought I'd ask. This works: michigan <- map_data('county', 'michigan') mich_points <- data.frame(x = rnorm(n = 200, median(michigan[,1]), 0.75), y = rnorm(n = 200, median(michigan[,2]), 0.75)) ggplot() + geom_path(aes(long, lat, group = group), data = michigan) + geom_point(aes(x, y), data = mich_points) + coord_map('gilbert', xlim = c(-86, -84)) This generates the f...