Description Usage Arguments Details Examples
Display rectangles representing each geohash
1 2 3 4 5 6 7 8 9 10 |
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
geom |
The geometric object to use display the data |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
na.rm |
logical. Should this layer remove NA values |
inherit.aes |
If |
... |
Additional parameters to the |
show.legnd |
logical. Should this layer be included in the legends?
|
Given a data.frame containing a list of geohash character strings, plot rectangles corresponding to the error boxes for each geohash.
stat_geohash
understands the following aesthetics (required aesthetics are in bold)
geohash
alpha
colour
fill
linetype
size
1 2 3 4 | df <- data.frame(geohash=c("SSW","S1W"), stringsAsFactors = FALSE)
library(ggplot2)
ggplot(df, aes(geohash=geohash))+stat_geohash()
ggplot(df, aes(geohash=geohash))+geom_rect(stat="geohash") +coord_quickmap()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.