seancarmody / rmapaus

R package to simplify visualising Australian data
6 stars 3 forks source link

mapfill crashes R #1

Closed seancarmody closed 10 years ago

seancarmody commented 10 years ago

The following example will crash R entirely:

x <- getMapAus()
mapfill(x@data, x[x$SD_NAME11 == "Sydney",], "long", "SD_CODE11")
seancarmody commented 10 years ago

It appears that this is a problem with ggplot2 which can crash when it receives a dataframe with only one row.

seancarmody commented 10 years ago

Error prevented: seancarmody/rmapaus@7b89a68c33d176dab828a085d9384c00bfb05c7e