Displaying 1 result from an estimated 1 matches for "area_influ".
2011 Apr 03
1
another question on shapefiles and geom_point in ggplot2
...m(manuel_points)
# fortify this one too for the points or else an error will ocurr
manuel_points <- fortify(manuel_points)
manuel_points
# Plot the shapefile and overlayed the points over it
p <- ggplot(manuel_merged, aes(long,lat,group=group)) +
geom_polygon(aes(data=manuel_merged,fill=Area_Influ)) +
geom_path(color="white") + theme_bw() # remove this if you don't want black
and white background
p + geom_point(data=manuel_points,aes(size=ACE,colour=ACE,group=NULL)) +
scale_size(name = "Número\nde\nespecies", breaks = c(2, 4, 6, 8, 10, 12, 14,
16, 18, 20)) +
...