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] 109.5632
ch_lon(10)
#>  [1]  -44.870445   63.348011  107.627002  -30.300180    4.193297 -103.047093
#>  [7]  -95.489549  -33.697306   62.168625   60.777854

ch_lat()
#> [1] 80.91307
ch_lat(10)
#>  [1] -67.978858   8.963748  14.836010 -15.706693 -53.936234  33.197371
#>  [7] -49.963640  19.915514 -40.002566 -82.179222

ch_position()
#> [1]  -6.359358 -14.999090
ch_position(10)
#> [[1]]
#> [1] -84.98475 -35.38160
#> 
#> [[2]]
#> [1] 107.24764  12.08284
#> 
#> [[3]]
#> [1] -166.83497  -72.35389
#> 
#> [[4]]
#> [1] -145.12963  -50.32118
#> 
#> [[5]]
#> [1] -170.00031  -74.29465
#> 
#> [[6]]
#> [1] -94.95870  -5.99109
#> 
#> [[7]]
#> [1] 81.12657 16.08696
#> 
#> [[8]]
#> [1] -173.18868  -80.04167
#> 
#> [[9]]
#> [1] -159.18349   85.40901
#> 
#> [[10]]
#> [1] 80.20983 23.89200
#> 
ch_position(bbox = c(-120, 30, -110, 60))
#> [1] -112.23739   37.95654