Displaying 1 result from an estimated 1 matches for "manuel_point".
Did you mean:
manuel_points
2011 Apr 03
1
another question on shapefiles and geom_point in ggplot2
...lt;- as.data.frame(manuel)
# fortify to plot with ggplot2
manuel_fort <- fortify(manuel,region="id")
head(manuel_fort)
# Merge shapefile and the as.dataframe shapefile
manuel_merged <- join(manuel_fort,manuel.df, by ="id")
head(manuel_merged)
# Read in the csv file
manuel_points <- read.csv("riqueza_out.csv")
head(manuel_points);dim(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, ae...