search for: manuel_fort

Displaying 1 result from an estimated 1 matches for "manuel_fort".

2011 Apr 03
1
another question on shapefiles and geom_point in ggplot2
...) names(manuel);dim(manuel)   slotNames(manuel) # look at the slot names # add the 'id' variable to the shapefile and use it to merge both files   manuel@data$id = rownames(manuel@data) # convert shapefile to dataframe   manuel.df <- 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...