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] -48.76789
ch_lon(10)
#>  [1] 162.342274  35.001408   4.075185  11.300079  92.450631 119.410132
#>  [7] -58.002586 -19.427540  47.606036  28.360092

ch_lat()
#> [1] 21.6977
ch_lat(10)
#>  [1]  85.100870 -51.319843  87.374361 -89.547725  32.242246  34.399254
#>  [7]  -5.807762 -17.750176 -12.396253   5.439805

ch_position()
#> [1] -19.01791 -66.45398
ch_position(10)
#> [[1]]
#> [1] -47.75597  77.23877
#> 
#> [[2]]
#> [1] 29.90818 14.58499
#> 
#> [[3]]
#> [1] -53.18908  75.58090
#> 
#> [[4]]
#> [1] -72.34799 -88.53975
#> 
#> [[5]]
#> [1] 170.59622  59.51646
#> 
#> [[6]]
#> [1] -75.32454  67.92432
#> 
#> [[7]]
#> [1] 177.18805 -34.40466
#> 
#> [[8]]
#> [1] 23.15279 65.18602
#> 
#> [[9]]
#> [1]  -0.9086324 -38.5690718
#> 
#> [[10]]
#> [1] -178.54149   32.74402
#> 
ch_position(bbox = c(-120, 30, -110, 60))
#> [1] -113.45312   57.73948