Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 130482

Use this tag when referring to the R package for high level data visualization and mapping.

1 vote
1 answer
354 views

Using R to create a choropleth generated from lat/lon lists - with data generated internally

a friend referred me here as opposed to the regular Stack Overflow site, as this community maybe better able to help! My issue is largely with the syntax and framework of ggmap,ggplot, and the sp pac …
rtob's user avatar
  • 73
3 votes
1 answer
4k views

Setting fill to a variable based on data within SpatialPolygonsDataFrame?

The issue is how ggplot2 deals with spatial polygons, and factors that define or are mapped to them. … The difference is something to do with how ggplot2 treats polygons - (my data has only 2208 unique elements, and 2208 unique polys, not 1.6 million), but I can't seem to identify how this is put together …
rtob's user avatar
  • 73
3 votes
Accepted

Setting fill to a variable based on data within SpatialPolygonsDataFrame?

The concern is largely that this creates a great deal of redundant data - one polygon or statistical area needs only one record of the variable of interest - but the way the aes() function in ggplot2 works …
rtob's user avatar
  • 73