R has a full library of tools for working with spatial data. This includes tools for both vector and raster data, as well as interfacing with data from other sources (like ArcGIS) and making maps.
Here are some excellent resources for learning R and R for Spatial Analysis.