Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-04 Thread Manuel Spínola
Thank you Ahmadou, I got an error when I change fill to colour: > p + geom_point(aes(size = ACE, colour = ACE)) + theme_bw() + + scale_size(to = c(3, 15), name = "Número de especies", breaks = c(10, 40, 70, 100, 130, 160, 190, 220, 250)) + + scale_colour_gradientn(name = 'Número de especies',

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-04 Thread ahmadou dicko
Hi all Just as Pierre pointed out, i used rgeos instead of gpclib (the licence is less restrictive even though i'm still students). A since the last release the rgeos package seems to work well. I'm really disapointed by the fact that some packages (e.g adehabitatMA which is great thank's M. Caleng

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-03 Thread Pierre Roudier
Hi all, 2011/4/4 Felipe Carrillo : > Manuel: > As far as I know one needs gpclibPermit() in order to fortify > see this: > Note: polygon geometry computations in maptools >     depend on the package gpclib, which has a >     restricted licence. It is disabled by default; >     to enabl

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-03 Thread Felipe Carrillo
Manuel: As far as I know one needs gpclibPermit() in order to fortify see this: Note: polygon geometry computations in maptools     depend on the package gpclib, which has a     restricted licence. It is disabled by default;     to enable gpclib, type gpclibPermit()  I am going to guess

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-03 Thread Manuel Spínola
Thank you very much Felipe, Did you see the solution from ahmadou dicko? He doesn´t use gpclibPermit() I have another option but I cannot get the right fill for the id. See attached map. ai_biotica = readOGR(dsn="C:/ProyectosRespacial/ICE/SIG_Biotica_PHED", layer="AI_BIOTICA_010411_CRTM05")

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-03 Thread Felipe Carrillo
Manuel: I changed your variable names from x to 'long' and y to 'lat' on the riqueza_out.csv file. The code below should do what you want. Also, since the legend title is kind of long, I broke it down into three lines so you can see more plot area. I am cc'ing the other groups so more people use