Skip to contents

Create fake coordinates

Usage

ch_lon(n = 1)

ch_lat(n = 1)

ch_position(n = 1, bbox = NULL)

Arguments

n

(integer) number of things to get, any non-negative integer

bbox

a bounding box of the form [w,s,e,n]

Examples

ch_lon()
#> [1] 101.061
ch_lon(10)
#>  [1] -155.530438  -82.725468  -84.937294  166.471526   -1.355806 -139.457277
#>  [7] -119.656297  106.949668  -64.666111   72.923180

ch_lat()
#> [1] -38.60136
ch_lat(10)
#>  [1]  53.58890 -40.53627 -83.66848  66.21565  16.86192 -13.83648  78.83574
#>  [8]  38.19153 -26.04458  48.63794

ch_position()
#> [1] -24.82501 -26.70899
ch_position(10)
#> [[1]]
#> [1] 136.50637 -63.74251
#> 
#> [[2]]
#> [1] 104.97327 -63.90967
#> 
#> [[3]]
#> [1]  57.99270 -32.05626
#> 
#> [[4]]
#> [1] 69.43538 32.75543
#> 
#> [[5]]
#> [1] -174.87725  -38.93903
#> 
#> [[6]]
#> [1] 105.80787 -17.14987
#> 
#> [[7]]
#> [1] 179.16560  62.39219
#> 
#> [[8]]
#> [1] 154.204763   5.040965
#> 
#> [[9]]
#> [1] -172.75593   89.18812
#> 
#> [[10]]
#> [1] -147.4391  -48.1017
#> 
ch_position(bbox = c(-120, 30, -110, 60))
#> [1] -113.87584   45.18422