Skip to contents

Get the PointMap connections

Usage

# S4 method for class 'PointMap'
connections(map)

Arguments

map

A PointMap

Value

A matrix with the connected refs

Examples

mifFile <- system.file(
    "extdata", "testdata", "gallery",
    "gallery_lines.mif",
    package = "alcyon"
  )
  sfMap <- st_read(mifFile,
    geometry_column = 1L, quiet = TRUE
  )
  pointMap <- makeVGAPointMap(
    sfMap,
    gridSize = 0.04,
    fillX = 3.01,
    fillY = 6.7,
    maxVisibility = NA,
    boundaryGraph = FALSE,
    verbose = FALSE
  )
# plot the first 100 connections only
head(connections(pointMap), 100)
#>         from      to
#>   [1,] 65592  131128
#>   [2,] 65592  196664
#>   [3,] 65592  262200
#>   [4,] 65592  327736
#>   [5,] 65592  393272
#>   [6,] 65592  458808
#>   [7,] 65592  524344
#>   [8,] 65592  589880
#>   [9,] 65592  655416
#>  [10,] 65592  720952
#>  [11,] 65592  786488
#>  [12,] 65592  327737
#>  [13,] 65592  393273
#>  [14,] 65592  458809
#>  [15,] 65592  524345
#>  [16,] 65592  589881
#>  [17,] 65592  655417
#>  [18,] 65592  720953
#>  [19,] 65592  786489
#>  [20,] 65592  589882
#>  [21,] 65592  655418
#>  [22,] 65592  720954
#>  [23,] 65592  786490
#>  [24,] 65592  852027
#>  [25,] 65592  917563
#>  [26,] 65592  983099
#>  [27,] 65592 1048635
#>  [28,] 65592 1114171
#>  [29,] 65592 1179707
#>  [30,] 65592 1114172
#>  [31,] 65592 1179708
#>  [32,] 65592 1245244
#>  [33,] 65592  196665
#>  [34,] 65592  262201
#>  [35,] 65592  327738
#>  [36,] 65592  393274
#>  [37,] 65592  458810
#>  [38,] 65592  524346
#>  [39,] 65592  458811
#>  [40,] 65592  524347
#>  [41,] 65592  589883
#>  [42,] 65592  655419
#>  [43,] 65592  720955
#>  [44,] 65592  786491
#>  [45,] 65592  524348
#>  [46,] 65592  589884
#>  [47,] 65592  655420
#>  [48,] 65592  720956
#>  [49,] 65592  786492
#>  [50,] 65592  655421
#>  [51,] 65592  720957
#>  [52,] 65592  786493
#>  [53,] 65592  262202
#>  [54,] 65592  327739
#>  [55,] 65592  393275
#>  [56,] 65592  393276
#>  [57,] 65592  458812
#>  [58,] 65592  458813
#>  [59,] 65592  524349
#>  [60,] 65592  589885
#>  [61,] 65592  131129
#>  [62,] 65592  196666
#>  [63,] 65592  262203
#>  [64,] 65592  327740
#>  [65,] 65592  393277
#>  [66,] 65592  196667
#>  [67,] 65592  262204
#>  [68,] 65592  262205
#>  [69,] 65592  327741
#>  [70,] 65592  131130
#>  [71,] 65592  131131
#>  [72,] 65592  196668
#>  [73,] 65592  196669
#>  [74,] 65592  196670
#>  [75,] 65592  196671
#>  [76,] 65592  262208
#>  [77,] 65592  262209
#>  [78,] 65592  262210
#>  [79,] 65592  262211
#>  [80,] 65592  327746
#>  [81,] 65592  327747
#>  [82,] 65592  327748
#>  [83,] 65592  131132
#>  [84,] 65592  131133
#>  [85,] 65592  196672
#>  [86,] 65592  262212
#>  [87,] 65592   65593
#>  [88,] 65592   65594
#>  [89,] 65592   65595
#>  [90,] 65592   65596
#>  [91,] 65592   65597
#>  [92,] 65593  131129
#>  [93,] 65593  196665
#>  [94,] 65593  262201
#>  [95,] 65593  327737
#>  [96,] 65593  393273
#>  [97,] 65593  458809
#>  [98,] 65593  524345
#>  [99,] 65593  589881
#> [100,] 65593  655417