Description Usage Arguments Value Author(s) Examples
The function qbbox computes a bounding box for the given lat,lon
points with a few additional options such as quantile boxes, additional margins, etc.
1 2 3 4 5 6 7  | 
lat | 
 latitude values  | 
lon | 
 longitude values  | 
TYPE | 
|
margin | 
|
q.lat | 
|
q.lon | 
|
verbose | 
latR  | 
 latitude range  | 
lonR  | 
 longitude range  | 
Markus Loecher
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37  | lat = 37.85 + rnorm(100, sd=0.001);
lon = -120.47 + rnorm(100, sd=0.001);
#add a few outliers:
lat[1:5] <- lat[1:5] + rnorm(5, sd =.01);
lon[1:5] <- lon[1:5] + rnorm(5, sd =.01);
#range, discarding the upper and lower 10% of the data
qbbox(lat, lon, TYPE = "quantile");
#full range:
qbbox(lat, lon, TYPE = "all");
#add a 10% extra margin on all four sides:
qbbox(lat, lon, margin = list(m = c(10, 10, 10, 10), TYPE = c("perc", "abs")[1]));
 
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.