[R] Map Antarctica

2013-06-05 Thread ejb
Hey, I'm new with R and I'm attempting to map and then plot points on a map of Antarctica with help from some code at the following link. Link http://www.molecularecologist.com/2012/09/making-maps-with-r/ After downloading the packages here is the code I used. I feel like the problem has to do

Re: [R] Map Antarctica

2013-06-05 Thread Michael Sumner
You have mixed your x with your y, try this: map(worldHires,Antarctica,ylim=c(-90,-60),xlim=c(-180,180),col=gray90,fill=TRUE) I tend not to use maps/mapdata if I can help it (there are problems as you can see, though there is support for projections with mapproject, see ?map), if you want to

Re: [R] Map Antarctica

2013-06-05 Thread Pascal Oettli
Hi, There is a problem with xlim and ylim. map(worldHires,Antarctica,xlim=c(-180,180),ylim=c(-90,-60),col=gray90,fill=TRUE) You also might have a look at ggplot2 library(ggplot2) world - map_data(world) worldmap - ggplot(world, aes(x=long, y=lat, group=group)) + geom_path() +