Re: [R] passing xlim to coord_map in ggplot2

2012-03-21 Thread Ista Zahn
Hi Zack, This works as expected on my machine: tank_trunc <- read.csv("http://r.789695.n4.nabble.com/file/n4492267/upton_tank_trunc_nabble.csv";) michigan_map.df <- map_data('county', 'michigan') ggplot() + geom_point(aes(lon, lat), data = tank_trunc, na.rm = T) + geom_path(aes(long, lat, grou

Re: [R] passing xlim to coord_map in ggplot2

2012-03-21 Thread z2.0
The first block of code should be reproducible. For the second block, you need only a data.frame. I've included a few rows from the one I'm working with. Two required libraries: maps, ggplot2. http://r.789695.n4.nabble.com/file/n4492267/upton_tank_trunc_nabble.csv upton_tank_trunc_nabble.csv --

Re: [R] passing xlim to coord_map in ggplot2

2012-03-20 Thread Ista Zahn
Hi Zack, It would help a lot if you can give a reproducible example that generates the error. Best, Ista On Tue, Mar 20, 2012 at 3:05 PM, z2.0 wrote: > This works: > michigan <- map_data('county', 'michigan') > mich_points <- data.frame(x = rnorm(n = 200, median(michigan[,1]), 0.75), y > = rnor

[R] passing xlim to coord_map in ggplot2

2012-03-20 Thread z2.0
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