The R language provides over 15,000 packages that implement both niche analytical packages and general-purpose statistical libraries. With regard to spatial analysis, the R language contains a large number of packages for managing, analyzing, and visualizing spatial data.