search for: geom_map

Displaying 4 results from an estimated 4 matches for "geom_map".

Did you mean: geom_bar
2018 Mar 19
1
Labelling a fortified GADM map plotted with ggplot and geom_map
...Alberta Alberta.1 132 -110.35103 60.00006 3 FALSE 1 Alberta Alberta.1 132 and the data set "tract" is the map data without the "Number" variable. I looked into working this out from by researching the geom_map function here: http://ggplot2.tidyverse.org/reference/geom_map.html my code looks like this: # get the raw map data can_map <- getData('GADM', country = "CAN", level = 1) # download map level with provinces tract <- fortify(can_map, region = "NAME_1") # transforms...
2012 Aug 04
1
Getting unknown error trying to plot spatial data
...define regions.* > pds$OBJECTID <- as.integer(pds$OBJECTID) *Error in `$<-.data.frame`(`*tmp*`, "OBJECTID", value = integer(0)) : replacement has 0 rows, data has 16249* > > > ## Make the map > > p1 <- ggplot(my_data, aes(map_id = zip)) > p1 <- p1 + geom_map(aes(fill=vol, map_id = zip), map = pds) > p1 <- p1 + expand_limits(x = pds$lon, y = pds$lat) + coord_equal() > p1 + xlab("Basic Map with Default Elements") *Error in unit(x, default.units) : 'x' and 'units' must have length > 0* Anybody have any idea what is h...
2012 Mar 02
0
ggplot2 0.9.0
...-------------------------------------- NEW FEATURES * `annotation_custom`: a new geom intended for use as static annnotations that are the same in every panel. Can be used to add inset plots, tables, and other grid-based decorations inside the plot area (Contributed by Baptiste Augui?). * `geom_map`: a new special case of `geom_polygon` useful when you are drawing maps, particularly choropleth maps. It is matched with `annotation_map`, an even faster special case when you want the same map drawn in each panel. * `geom_raster` is a special case of `geom_tile` for equally sized rectangular...
2012 Mar 02
0
ggplot2 0.9.0
...-------------------------------------- NEW FEATURES * `annotation_custom`: a new geom intended for use as static annnotations that are the same in every panel. Can be used to add inset plots, tables, and other grid-based decorations inside the plot area (Contributed by Baptiste Augui?). * `geom_map`: a new special case of `geom_polygon` useful when you are drawing maps, particularly choropleth maps. It is matched with `annotation_map`, an even faster special case when you want the same map drawn in each panel. * `geom_raster` is a special case of `geom_tile` for equally sized rectangular...