Print a reasonably readable summary of an object of class tileInfo as produced by the tileInfo() function.

# S3 method for class 'tileInfo'
print(x, digits = 4, npl = 6, ...)

Arguments

x

An object of class tileInfo as produced by the tileInfo() function.

digits

Integer scalar. The (maximum) number of decimal digits to which the output is to be printed.

npl

Integer scalar. “Number per line”. It specifies the (maximum) number of values per line. Used (only) when printing the edge lengths component of x. It effects a tidy “folding” of the printed vector of edge lengths of the tile associated with a given point. If you increase the value of digits you may wish to decrease the value of npl, and vice versa.

...

Not used. Present for compatibility with the generic print() function.

Details

The list produced by tileInfo() is a bit messy and hard to comprehend, especially if there is a large number of tiles. This print method produces a screen display which is somewhat more perspicuous.

There are four components to the display:

  • A list, each entry of which is the vector of edge lengths of the tile. Each edge length is formatted to have a number of digits specified by the digits argument. Each list entry may be displayed over a number of lines. The first of these lines is prefixed by an “informative” string indicating the point that determines the tile whose edge lengths are being printed. The string is formed from the identifier of the point. See deldir(), plot.deldir() and getNbrs(). The identifier may consist essentially of the index of the point in the sequence of points that is being tessellated.

    Succeeding lines, corresponding to the same list entry, are prefixed with a number of blanks so as to produce an aesthetically pleasing alignment.

  • A table of the edge counts of the tiles.

  • A simple print out of the areas of the tiles (rounded to a maximum of digits decimal digits).

  • A simple print out of the perimeters of the tiles (rounded to a maximum of digits decimal digits).

This screen display is for “looking at” only. In order to do further calculations on the output of tileInfo it is necessary to delve into the bowels of x and extract the relevant bits.

Value

None.

Author

Rolf Turner rolfurner@posteo.net

See also

Examples

set.seed(179)
x    <- runif(100)
y    <- runif(100)
dxy  <- deldir(x,y,rw=c(0,1,0,1))
ixy1 <- tileInfo(dxy)
print(ixy1)
#> 
#> Edge lengths:
#> =============
#> point 1:   0.0029 0.0454 0.1076 0.0790 0.0910 
#> point 2:   0.0270 0.0937 0.0577 0.0128 0.1513 
#> point 4:   0.0670 0.0349 0.0036 0.0482 0.0456 0.0155 
#> point 5:   0.1722 0.0327 0.2278 0.2019 
#> point 6:   0.0252 0.0450 0.0561 0.0488 
#> point 9:   0.1884 0.0506 0.0943 0.1000 0.1062 0.0262 
#>            0.0628 
#> point 10:  0.0458 0.1714 0.0150 0.0468 0.1189 
#> point 11:  0.0887 0.1041 0.1099 0.0280 0.0525 
#> point 12:  0.0340 0.0353 0.0947 0.0628 0.0188 0.0934 
#>            0.0736 
#> point 13:  0.0026 0.0562 0.0489 0.0903 0.0344 0.0808 
#>            0.1227 
#> point 17:  0.0432 0.0478 0.0771 0.0339 0.0150 0.0589 
#> point 19:  0.0386 0.0931 0.0546 0.0937 
#> point 21:  0.0530 0.0188 0.0262 0.1476 0.0562 0.1288 
#>            0.0518 
#> point 22:  0.0857 0.1246 0.0383 0.1397 
#> point 23:  0.0209 0.1177 0.0066 0.1312 0.0307 0.0454 
#>            0.0447 0.0857 
#> point 24:  0.0469 0.1667 0.1280 0.0472 0.0683 
#> point 26:  0.0664 0.0315 0.1097 0.0272 0.1004 
#> point 29:  0.0521 0.1006 0.1004 0.0043 0.1209 
#> point 30:  0.0195 0.0524 0.1125 0.0982 0.0181 0.0594 
#> point 31:  0.0685 0.0424 0.0631 0.0353 0.0516 
#> point 32:  0.1384 0.1976 0.1172 
#> point 33:  0.0274 0.1640 0.0131 0.0837 0.0429 0.1221 
#> point 34:  0.0263 0.0585 0.0244 0.0080 0.0806 
#> point 35:  0.0459 0.0175 0.1058 0.0432 0.0916 
#> point 36:  0.0837 0.0000 0.0521 0.1399 0.0273 0.1363 
#> point 38:  0.0343 0.0808 0.0349 0.0683 0.0025 0.1384 
#>            0.0263 0.0123 0.0564 
#> point 39:  0.0447 0.0029 0.0955 0.0595 0.0575 0.1246 
#> point 40:  0.0953 0.0667 0.1050 0.0064 0.1243 
#> point 41:  0.0906 0.0623 0.1884 0.0947 0.0631 
#> point 43:  0.0339 0.0348 0.0516 0.0340 0.0733 
#> point 44:  0.0331 0.0601 0.0175 0.0875 0.0642 0.0131 
#>            0.0597 0.0263 
#> point 45:  0.0508 0.0425 0.0459 0.0517 0.0973 0.0768 
#> point 46:  0.0131 0.0984 0.0958 0.0045 0.1722 0.0120 
#>            0.0829 
#> point 47:  0.0307 0.0330 0.1069 0.0564 0.0210 0.1076 
#> point 49:  0.0482 0.0414 0.0768 0.0126 0.0560 
#> point 50:  0.0501 0.0273 0.1079 0.0049 0.1243 0.1242 
#>            0.1185 0.0200 
#> point 51:  0.0516 0.0288 0.0120 0.2019 0.0088 0.0718 
#>            0.1667 
#> point 52:  0.0651 0.1288 0.0026 0.0763 0.0330 0.1312 
#> point 53:  0.0502 0.0316 0.0934 0.0530 0.0830 0.0931 
#> point 54:  0.1000 0.1236 0.0638 0.0360 0.0630 
#> point 56:  0.0210 0.0123 0.0961 0.0289 0.0790 
#> point 57:  0.0598 0.0097 0.1458 0.1202 0.1714 
#> point 58:  0.1166 0.1163 0.0338 0.0478 0.1058 
#> point 59:  0.0244 0.0181 0.1399 0.0958 0.0263 0.0561 
#> point 61:  0.0400 0.0331 0.0806 0.0455 0.0638 
#> point 64:  0.0338 0.0098 0.0748 0.0685 0.0348 0.0771 
#> point 65:  0.0611 0.1189 0.0379 0.0256 0.0550 
#> point 67:  0.0594 0.0244 0.0450 0.0667 
#> point 68:  0.1431 0.1309 0.0906 0.0424 0.0748 
#> point 70:  0.0603 0.1221 0.1462 0.0200 0.0021 0.0506 
#>            0.0623 0.1309 
#> point 72:  0.0429 0.1363 0.0501 0.1462 
#> point 74:  0.1242 0.0064 0.0292 0.0350 0.0524 0.0816 
#>            0.0175 0.0790 
#> point 75:  0.0360 0.0455 0.0080 0.1169 0.0903 0.0922 
#> point 76:  0.0379 0.0468 0.0385 0.0209 0.1397 0.0154 
#>            0.0692 0.0975 
#> point 80:  0.0943 0.0021 0.1185 0.0790 0.0601 0.0400 
#>            0.1236 
#> point 81:  0.0208 0.0150 0.0733 0.0736 0.0316 0.1034 
#> point 83:  0.0577 0.0546 0.0830 0.0518 0.0651 0.0066 
#>            0.1404 
#> point 86:  0.0014 0.0128 0.1404 0.1177 0.0385 0.0150 
#>            0.1202 
#> point 88:  0.1209 0.0609 0.1079 0.1399 
#> point 89:  0.0585 0.0597 0.0829 0.0288 0.1256 
#> point 90:  0.0763 0.1227 0.0343 0.1069 
#> point 93:  0.0028 0.0488 0.0263 0.0984 0.0642 
#> point 94:  0.1062 0.0630 0.0922 0.0489 0.1476 
#> point 96:  0.0095 0.1034 0.0502 0.0386 0.0270 0.0116 
#>            0.1099 
#> point 97:  0.0816 0.0195 0.0667 0.0252 0.0028 0.0875 
#> point 98:  0.0244 0.1256 0.0516 0.0469 0.0349 0.0344 
#>            0.1169 
#> point 99:  0.0320 0.0063 0.0517 0.0916 0.0589 0.0208 
#>            0.0095 0.1041 
#> point 100: 0.0280 0.0116 0.1513 0.0014 0.1458 0.1696 
#> 
#> Table of edge counts:
#> =====================
#> 
#>     3  4  5  6  7  8  9 
#>     1  8 24 16 11  7  1 
#> 
#> Tile areas:
#> ===========
#> 
#>   pt.1   pt.2   pt.4   pt.5   pt.6   pt.9  pt.10  pt.11  pt.12  pt.13  pt.17 
#> 0.0061 0.0048 0.0028 0.0205 0.0016 0.0222 0.0054 0.0089 0.0111 0.0116 0.0045 
#>  pt.19  pt.21  pt.22  pt.23  pt.24  pt.26  pt.29  pt.30  pt.31  pt.32  pt.33 
#> 0.0043 0.0147 0.0078 0.0152 0.0116 0.0061 0.0073 0.0080 0.0045 0.0080 0.0116 
#>  pt.34  pt.35  pt.36  pt.38  pt.39  pt.40  pt.41  pt.43  pt.44  pt.45  pt.46 
#> 0.0019 0.0053 0.0075 0.0133 0.0089 0.0096 0.0144 0.0032 0.0084 0.0090 0.0126 
#>  pt.47  pt.49  pt.50  pt.51  pt.52  pt.53  pt.54  pt.56  pt.57  pt.58  pt.59 
#> 0.0073 0.0034 0.0216 0.0133 0.0117 0.0106 0.0093 0.0025 0.0114 0.0110 0.0063 
#>  pt.61  pt.64  pt.65  pt.67  pt.68  pt.70  pt.72  pt.74  pt.75  pt.76  pt.80 
#> 0.0041 0.0055 0.0044 0.0019 0.0142 0.0193 0.0060 0.0122 0.0090 0.0140 0.0168 
#>  pt.81  pt.83  pt.86  pt.88  pt.89  pt.90  pt.93  pt.94  pt.96  pt.97  pt.98 
#> 0.0059 0.0128 0.0114 0.0107 0.0073 0.0061 0.0027 0.0129 0.0073 0.0048 0.0120 
#>  pt.99 pt.100 
#> 0.0088 0.0139 
#> 
#> 
#> Tile perimeters:
#> ================
#> 
#>   pt.1   pt.2   pt.4   pt.5   pt.6   pt.9  pt.10  pt.11  pt.12  pt.13  pt.17 
#> 0.3260 0.3425 0.2148 0.6346 0.1751 0.6284 0.3980 0.3832 0.4124 0.4357 0.2760 
#>  pt.19  pt.21  pt.22  pt.23  pt.24  pt.26  pt.29  pt.30  pt.31  pt.32  pt.33 
#> 0.2800 0.4823 0.3883 0.4830 0.4571 0.3352 0.3784 0.3602 0.2609 0.4533 0.4531 
#>  pt.34  pt.35  pt.36  pt.38  pt.39  pt.40  pt.41  pt.43  pt.44  pt.45  pt.46 
#> 0.1978 0.3040 0.4395 0.4542 0.3848 0.3976 0.4990 0.2276 0.3615 0.3650 0.4789 
#>  pt.47  pt.49  pt.50  pt.51  pt.52  pt.53  pt.54  pt.56  pt.57  pt.58  pt.59 
#> 0.3556 0.2350 0.5773 0.5415 0.4370 0.4043 0.3865 0.2374 0.5070 0.4203 0.3608 
#>  pt.61  pt.64  pt.65  pt.67  pt.68  pt.70  pt.72  pt.74  pt.75  pt.76  pt.80 
#> 0.2630 0.2988 0.2984 0.1957 0.4817 0.5945 0.3755 0.4252 0.3888 0.4659 0.5177 
#>  pt.81  pt.83  pt.86  pt.88  pt.89  pt.90  pt.93  pt.94  pt.96  pt.97  pt.98 
#> 0.3177 0.4592 0.4461 0.4296 0.3554 0.3402 0.2405 0.4579 0.3503 0.2833 0.4346 
#>  pt.99 pt.100 
#> 0.3750 0.5078 
#> 
#> 
#> Delaunay neighbours of tile centres:
#> =====================================
#> 
#> point 1 has neighbours: 3 47 56 39 23
#> point 2 has neighbours: 83 86 96 19 100
#> point 4 has neighbours: 8 15 18 49 63 95
#> point 5 has neighbours: 27 51 46 66
#> point 6 has neighbours: 59 67 93 97
#> point 9 has neighbours: 21 94 54 80 12 41 70
#> point 10 has neighbours: 57 65 76 86 87
#> point 11 has neighbours: 96 14 25 100 99
#> point 12 has neighbours: 21 9 31 41 43 53 81
#> point 13 has neighbours: 38 21 52 90 94 75 98
#> point 17 has neighbours: 43 64 81 99 35 58
#> point 19 has neighbours: 83 53 96 2
#> point 21 has neighbours: 83 13 52 94 9 12 53
#> point 22 has neighbours: 28 39 76 23
#> point 23 has neighbours: 1 47 22 39 76 83 86 52
#> point 24 has neighbours: 51 62 85 38 98
#> point 26 has neighbours: 29 71 73 79 92
#> point 29 has neighbours: 36 26 71 88 92
#> point 30 has neighbours: 59 66 67 97 48 74
#> point 31 has neighbours: 12 41 43 64 68
#> point 32 has neighbours: 62 38 55
#> point 33 has neighbours: 91 16 36 70 72 92
#> point 34 has neighbours: 44 61 75 89 98
#> point 35 has neighbours: 45 82 99 17 58
#> point 36 has neighbours: 50 33 72 29 88 92
#> point 38 has neighbours: 24 62 32 47 55 56 13 90 98
#> point 39 has neighbours: 1 3 20 22 28 23
#> point 40 has neighbours: 50 60 74 84 71
#> point 41 has neighbours: 9 12 31 68 70
#> point 43 has neighbours: 12 31 64 81 17
#> point 44 has neighbours: 34 61 80 89 46 93 97 74
#> point 45 has neighbours: 8 49 77 82 99 35
#> point 46 has neighbours: 5 51 44 89 59 66 93
#> point 47 has neighbours: 1 38 56 23 52 90
#> point 49 has neighbours: 4 8 18 45 77
#> point 50 has neighbours: 80 40 74 36 70 72 71 88
#> point 51 has neighbours: 5 27 24 85 89 98 46
#> point 52 has neighbours: 47 83 13 21 23 90
#> point 53 has neighbours: 83 21 12 81 96 19
#> point 54 has neighbours: 94 61 75 80 9
#> point 56 has neighbours: 1 3 38 47 55
#> point 57 has neighbours: 10 86 87 14 100
#> point 58 has neighbours: 64 82 17 35 91
#> point 59 has neighbours: 6 30 46 66 67 93
#> point 61 has neighbours: 34 44 54 75 80
#> point 64 has neighbours: 31 43 17 58 68 91
#> point 65 has neighbours: 10 42 76 78 87
#> point 67 has neighbours: 6 30 59 97
#> point 68 has neighbours: 31 41 64 91 70
#> point 70 has neighbours: 80 50 9 41 68 91 33 72
#> point 72 has neighbours: 50 33 36 70
#> point 74 has neighbours: 44 80 30 97 40 48 50 60
#> point 75 has neighbours: 13 94 34 54 61 98
#> point 76 has neighbours: 22 28 37 10 65 78 86 23
#> point 80 has neighbours: 44 54 61 50 74 9 70
#> point 81 has neighbours: 12 43 53 96 99 17
#> point 83 has neighbours: 86 21 23 52 53 2 19
#> point 86 has neighbours: 10 57 76 83 23 2 100
#> point 88 has neighbours: 50 36 29 71
#> point 89 has neighbours: 51 34 44 98 46
#> point 90 has neighbours: 38 47 13 52
#> point 93 has neighbours: 44 6 46 59 97
#> point 94 has neighbours: 13 21 54 75 9
#> point 96 has neighbours: 53 81 2 11 19 100 99
#> point 97 has neighbours: 44 6 30 67 93 74
#> point 98 has neighbours: 24 51 38 13 34 75 89
#> point 99 has neighbours: 81 96 11 25 45 77 17 35
#> point 100 has neighbours: 57 86 96 2 11 14
#> 
ixy2 <- tileInfo(dxy,bndry=TRUE)
print(ixy2)
#> 
#> Edge lengths:
#> =============
#> point 1:   0.0029 0.0454 0.1076 0.0790 0.0910 
#> point 2:   0.0270 0.0937 0.0577 0.0128 0.1513 
#> point 3:   0.0955 0.0910 0.0289 0.1108 0.0762 0.1338 
#> point 4:   0.0670 0.0349 0.0036 0.0482 0.0456 0.0155 
#> point 5:   0.1722 0.0327 0.2278 0.2019 
#> point 6:   0.0252 0.0450 0.0561 0.0488 
#> point 7:   0.1319 0.1118 0.0996 
#> point 8:   0.0312 0.0922 0.0508 0.0414 0.0036 0.0670 
#> point 9:   0.1884 0.0506 0.0943 0.1000 0.1062 0.0262 
#>            0.0628 
#> point 10:  0.0458 0.1714 0.0150 0.0468 0.1189 
#> point 11:  0.0887 0.1041 0.1099 0.0280 0.0525 
#> point 12:  0.0340 0.0353 0.0947 0.0628 0.0188 0.0934 
#>            0.0736 
#> point 13:  0.0026 0.0562 0.0489 0.0903 0.0344 0.0808 
#>            0.1227 
#> point 14:  0.1598 0.0525 0.1696 0.0097 0.0119 0.2150 
#> point 15:  0.0599 0.0670 0.0349 0.0227 
#> point 16:  0.2404 0.1035 0.1640 0.0815 
#> point 17:  0.0432 0.0478 0.0771 0.0339 0.0150 0.0589 
#> point 18:  0.0456 0.0560 0.1021 0.0549 0.0866 
#> point 19:  0.0386 0.0931 0.0546 0.0937 
#> point 20:  0.0595 0.1338 0.1710 0.1440 
#> point 21:  0.0530 0.0188 0.0262 0.1476 0.0562 0.1288 
#>            0.0518 
#> point 22:  0.0857 0.1246 0.0383 0.1397 
#> point 23:  0.0209 0.1177 0.0066 0.1312 0.0307 0.0454 
#>            0.0447 0.0857 
#> point 24:  0.0469 0.1667 0.1280 0.0472 0.0683 
#> point 25:  0.0001 0.1807 0.0320 0.0887 0.1598 
#> point 26:  0.0664 0.0315 0.1097 0.0272 0.1004 
#> point 27:  0.0714 0.1052 0.1790 0.0735 0.0541 0.0088 
#>            0.2278 
#> point 28:  0.0154 0.0383 0.0575 0.1440 0.0459 0.1847 
#> point 29:  0.0521 0.1006 0.1004 0.0043 0.1209 
#> point 30:  0.0195 0.0524 0.1125 0.0982 0.0181 0.0594 
#> point 31:  0.0685 0.0424 0.0631 0.0353 0.0516 
#> point 32:  0.1384 0.1976 0.1172 
#> point 33:  0.0274 0.1640 0.0131 0.0837 0.0429 0.1221 
#> point 34:  0.0263 0.0585 0.0244 0.0080 0.0806 
#> point 35:  0.0459 0.0175 0.1058 0.0432 0.0916 
#> point 36:  0.0837 0.0000 0.0521 0.1399 0.0273 0.1363 
#> point 37:  0.0286 0.0692 0.1847 0.0671 0.2158 
#> point 38:  0.0343 0.0808 0.0349 0.0683 0.0025 0.1384 
#>            0.0263 0.0123 0.0564 
#> point 39:  0.0447 0.0029 0.0955 0.0595 0.0575 0.1246 
#> point 40:  0.0953 0.0667 0.1050 0.0064 0.1243 
#> point 41:  0.0906 0.0623 0.1884 0.0947 0.0631 
#> point 42:  0.0280 0.0550 0.0530 0.0193 
#> point 43:  0.0339 0.0348 0.0516 0.0340 0.0733 
#> point 44:  0.0331 0.0601 0.0175 0.0875 0.0642 0.0131 
#>            0.0597 0.0263 
#> point 45:  0.0508 0.0425 0.0459 0.0517 0.0973 0.0768 
#> point 46:  0.0131 0.0984 0.0958 0.0045 0.1722 0.0120 
#>            0.0829 
#> point 47:  0.0307 0.0330 0.1069 0.0564 0.0210 0.1076 
#> point 48:  0.0350 0.1348 0.0956 0.0289 0.1125 
#> point 49:  0.0482 0.0414 0.0768 0.0126 0.0560 
#> point 50:  0.0501 0.0273 0.1079 0.0049 0.1243 0.1242 
#>            0.1185 0.0200 
#> point 51:  0.0516 0.0288 0.0120 0.2019 0.0088 0.0718 
#>            0.1667 
#> point 52:  0.0651 0.1288 0.0026 0.0763 0.0330 0.1312 
#> point 53:  0.0502 0.0316 0.0934 0.0530 0.0830 0.0931 
#> point 54:  0.1000 0.1236 0.0638 0.0360 0.0630 
#> point 55:  0.0961 0.0263 0.1172 0.0240 0.0635 0.1108 
#> point 56:  0.0210 0.0123 0.0961 0.0289 0.0790 
#> point 57:  0.0598 0.0097 0.1458 0.1202 0.1714 
#> point 58:  0.1166 0.1163 0.0338 0.0478 0.1058 
#> point 59:  0.0244 0.0181 0.1399 0.0958 0.0263 0.0561 
#> point 60:  0.0647 0.0210 0.1348 0.0292 0.1050 
#> point 61:  0.0400 0.0331 0.0806 0.0455 0.0638 
#> point 62:  0.0025 0.0472 0.1100 0.1829 0.0240 0.1976 
#> point 63:  0.0221 0.0414 0.0155 0.0866 0.1234 
#> point 64:  0.0338 0.0098 0.0748 0.0685 0.0348 0.0771 
#> point 65:  0.0611 0.1189 0.0379 0.0256 0.0550 
#> point 66:  0.0982 0.0289 0.2402 0.0714 0.0327 0.0045 
#>            0.1399 
#> point 67:  0.0594 0.0244 0.0450 0.0667 
#> point 68:  0.1431 0.1309 0.0906 0.0424 0.0748 
#> point 69:  0.1278 0.1253 0.1790 
#> point 70:  0.0603 0.1221 0.1462 0.0200 0.0021 0.0506 
#>            0.0623 0.1309 
#> point 71:  0.0043 0.0272 0.1251 0.0396 0.0923 0.0953 
#>            0.0049 0.0609 
#> point 72:  0.0429 0.1363 0.0501 0.1462 
#> point 73:  0.0857 0.0616 0.1251 0.1097 
#> point 74:  0.1242 0.0064 0.0292 0.0350 0.0524 0.0816 
#>            0.0175 0.0790 
#> point 75:  0.0360 0.0455 0.0080 0.1169 0.0903 0.0922 
#> point 76:  0.0379 0.0468 0.0385 0.0209 0.1397 0.0154 
#>            0.0692 0.0975 
#> point 77:  0.1021 0.0126 0.0973 0.0063 0.1807 0.0728 
#> point 78:  0.0530 0.0256 0.0975 0.0286 0.1196 
#> point 79:  0.0285 0.1475 0.0857 0.0315 0.0121 0.1118 
#> point 80:  0.0943 0.0021 0.1185 0.0790 0.0601 0.0400 
#>            0.1236 
#> point 81:  0.0208 0.0150 0.0733 0.0736 0.0316 0.1034 
#> point 82:  0.1862 0.0742 0.1166 0.0175 0.0425 0.0922 
#> point 83:  0.0577 0.0546 0.0830 0.0518 0.0651 0.0066 
#>            0.1404 
#> point 84:  0.0923 0.1616 0.0647 0.0667 
#> point 85:  0.1280 0.0718 0.0541 0.1945 0.1100 
#> point 86:  0.0014 0.0128 0.1404 0.1177 0.0385 0.0150 
#>            0.1202 
#> point 87:  0.0119 0.0598 0.0458 0.0611 0.0280 0.1790 
#> point 88:  0.1209 0.0609 0.1079 0.1399 
#> point 89:  0.0585 0.0597 0.0829 0.0288 0.1256 
#> point 90:  0.0763 0.1227 0.0343 0.1069 
#> point 91:  0.0742 0.1448 0.0815 0.0274 0.0603 0.1431 
#>            0.0098 0.1163 
#> point 92:  0.0662 0.0996 0.0121 0.0664 0.1006 0.0000 
#>            0.0131 0.1035 
#> point 93:  0.0028 0.0488 0.0263 0.0984 0.0642 
#> point 94:  0.1062 0.0630 0.0922 0.0489 0.1476 
#> point 95:  0.0887 0.0227 0.0670 0.0414 
#> point 96:  0.0095 0.1034 0.0502 0.0386 0.0270 0.0116 
#>            0.1099 
#> point 97:  0.0816 0.0195 0.0667 0.0252 0.0028 0.0875 
#> point 98:  0.0244 0.1256 0.0516 0.0469 0.0349 0.0344 
#>            0.1169 
#> point 99:  0.0320 0.0063 0.0517 0.0916 0.0589 0.0208 
#>            0.0095 0.1041 
#> point 100: 0.0280 0.0116 0.1513 0.0014 0.1458 0.1696 
#> 
#> Table of edge counts:
#> =====================
#> 
#>     3  4  5  6  7  8  9 
#>     3 15 32 26 13 10  1 
#> 
#> Tile areas:
#> ===========
#> 
#>   pt.1   pt.2   pt.3   pt.4   pt.5   pt.6   pt.7   pt.8   pt.9  pt.10  pt.11 
#> 0.0061 0.0048 0.0165 0.0028 0.0205 0.0016 0.0054 0.0051 0.0222 0.0054 0.0089 
#>  pt.12  pt.13  pt.14  pt.15  pt.16  pt.17  pt.18  pt.19  pt.20  pt.21  pt.22 
#> 0.0111 0.0116 0.0215 0.0018 0.0169 0.0045 0.0070 0.0043 0.0146 0.0147 0.0078 
#>  pt.23  pt.24  pt.25  pt.26  pt.27  pt.28  pt.29  pt.30  pt.31  pt.32  pt.33 
#> 0.0152 0.0116 0.0100 0.0061 0.0295 0.0127 0.0073 0.0080 0.0045 0.0080 0.0116 
#>  pt.34  pt.35  pt.36  pt.37  pt.38  pt.39  pt.40  pt.41  pt.42  pt.43  pt.44 
#> 0.0019 0.0053 0.0075 0.0162 0.0133 0.0089 0.0096 0.0144 0.0013 0.0032 0.0084 
#>  pt.45  pt.46  pt.47  pt.48  pt.49  pt.50  pt.51  pt.52  pt.53  pt.54  pt.55 
#> 0.0090 0.0126 0.0073 0.0094 0.0034 0.0216 0.0133 0.0117 0.0106 0.0093 0.0114 
#>  pt.56  pt.57  pt.58  pt.59  pt.60  pt.61  pt.62  pt.63  pt.64  pt.65  pt.66 
#> 0.0025 0.0114 0.0110 0.0063 0.0064 0.0041 0.0160 0.0036 0.0055 0.0044 0.0208 
#>  pt.67  pt.68  pt.69  pt.70  pt.71  pt.72  pt.73  pt.74  pt.75  pt.76  pt.77 
#> 0.0019 0.0142 0.0080 0.0193 0.0123 0.0060 0.0086 0.0122 0.0090 0.0140 0.0122 
#>  pt.78  pt.79  pt.80  pt.81  pt.82  pt.83  pt.84  pt.85  pt.86  pt.87  pt.88 
#> 0.0057 0.0099 0.0168 0.0059 0.0162 0.0128 0.0070 0.0170 0.0114 0.0047 0.0107 
#>  pt.89  pt.90  pt.91  pt.92  pt.93  pt.94  pt.95  pt.96  pt.97  pt.98  pt.99 
#> 0.0073 0.0061 0.0307 0.0142 0.0027 0.0129 0.0023 0.0073 0.0048 0.0120 0.0088 
#> pt.100 
#> 0.0139 
#> 
#> 
#> Tile perimeters:
#> ================
#> 
#>   pt.1   pt.2   pt.3   pt.4   pt.5   pt.6   pt.7   pt.8   pt.9  pt.10  pt.11 
#> 0.3260 0.3425 0.5362 0.2148 0.6346 0.1751 0.3434 0.2864 0.6284 0.3980 0.3832 
#>  pt.12  pt.13  pt.14  pt.15  pt.16  pt.17  pt.18  pt.19  pt.20  pt.21  pt.22 
#> 0.4124 0.4357 0.6186 0.1845 0.5893 0.2760 0.3453 0.2800 0.5084 0.4823 0.3883 
#>  pt.23  pt.24  pt.25  pt.26  pt.27  pt.28  pt.29  pt.30  pt.31  pt.32  pt.33 
#> 0.4830 0.4571 0.4613 0.3352 0.7197 0.4857 0.3784 0.3602 0.2609 0.4533 0.4531 
#>  pt.34  pt.35  pt.36  pt.37  pt.38  pt.39  pt.40  pt.41  pt.42  pt.43  pt.44 
#> 0.1978 0.3040 0.4395 0.5654 0.4542 0.3848 0.3976 0.4990 0.1554 0.2276 0.3615 
#>  pt.45  pt.46  pt.47  pt.48  pt.49  pt.50  pt.51  pt.52  pt.53  pt.54  pt.55 
#> 0.3650 0.4789 0.3556 0.4068 0.2350 0.5773 0.5415 0.4370 0.4043 0.3865 0.4380 
#>  pt.56  pt.57  pt.58  pt.59  pt.60  pt.61  pt.62  pt.63  pt.64  pt.65  pt.66 
#> 0.2374 0.5070 0.4203 0.3608 0.3546 0.2630 0.5644 0.2891 0.2988 0.2984 0.6159 
#>  pt.67  pt.68  pt.69  pt.70  pt.71  pt.72  pt.73  pt.74  pt.75  pt.76  pt.77 
#> 0.1957 0.4817 0.4320 0.5945 0.4495 0.3755 0.3822 0.4252 0.3888 0.4659 0.4718 
#>  pt.78  pt.79  pt.80  pt.81  pt.82  pt.83  pt.84  pt.85  pt.86  pt.87  pt.88 
#> 0.3243 0.4172 0.5177 0.3177 0.5293 0.4592 0.3853 0.5586 0.4461 0.3856 0.4296 
#>  pt.89  pt.90  pt.91  pt.92  pt.93  pt.94  pt.95  pt.96  pt.97  pt.98  pt.99 
#> 0.3554 0.3402 0.6574 0.4615 0.2405 0.4579 0.2198 0.3503 0.2833 0.4346 0.3750 
#> pt.100 
#> 0.5078 
#> 
#> 
#> Delaunay neighbours of tile centres:
#> =====================================
#> 
#> point 1 has neighbours: 3 47 56 39 23
#> point 2 has neighbours: 83 86 96 19 100
#> point 3 has neighbours: 1 55 56 20 39
#> point 4 has neighbours: 8 15 18 49 63 95
#> point 5 has neighbours: 27 51 46 66
#> point 6 has neighbours: 59 67 93 97
#> point 7 has neighbours: 79 92
#> point 8 has neighbours: 4 15 45 49 82
#> point 9 has neighbours: 21 94 54 80 12 41 70
#> point 10 has neighbours: 57 65 76 86 87
#> point 11 has neighbours: 96 14 25 100 99
#> point 12 has neighbours: 21 9 31 41 43 53 81
#> point 13 has neighbours: 38 21 52 90 94 75 98
#> point 14 has neighbours: 57 87 11 25 100
#> point 15 has neighbours: 4 8 95
#> point 16 has neighbours: 91 33 92
#> point 17 has neighbours: 43 64 81 99 35 58
#> point 18 has neighbours: 4 49 63 77
#> point 19 has neighbours: 83 53 96 2
#> point 20 has neighbours: 3 28 39
#> point 21 has neighbours: 83 13 52 94 9 12 53
#> point 22 has neighbours: 28 39 76 23
#> point 23 has neighbours: 1 47 22 39 76 83 86 52
#> point 24 has neighbours: 51 62 85 38 98
#> point 25 has neighbours: 11 14 77 99
#> point 26 has neighbours: 29 71 73 79 92
#> point 27 has neighbours: 5 69 51 85 66
#> point 28 has neighbours: 20 22 37 39 76
#> point 29 has neighbours: 36 26 71 88 92
#> point 30 has neighbours: 59 66 67 97 48 74
#> point 31 has neighbours: 12 41 43 64 68
#> point 32 has neighbours: 62 38 55
#> point 33 has neighbours: 91 16 36 70 72 92
#> point 34 has neighbours: 44 61 75 89 98
#> point 35 has neighbours: 45 82 99 17 58
#> point 36 has neighbours: 50 33 72 29 88 92
#> point 37 has neighbours: 28 76 78
#> point 38 has neighbours: 24 62 32 47 55 56 13 90 98
#> point 39 has neighbours: 1 3 20 22 28 23
#> point 40 has neighbours: 50 60 74 84 71
#> point 41 has neighbours: 9 12 31 68 70
#> point 42 has neighbours: 65 78 87
#> point 43 has neighbours: 12 31 64 81 17
#> point 44 has neighbours: 34 61 80 89 46 93 97 74
#> point 45 has neighbours: 8 49 77 82 99 35
#> point 46 has neighbours: 5 51 44 89 59 66 93
#> point 47 has neighbours: 1 38 56 23 52 90
#> point 48 has neighbours: 30 66 60 74
#> point 49 has neighbours: 4 8 18 45 77
#> point 50 has neighbours: 80 40 74 36 70 72 71 88
#> point 51 has neighbours: 5 27 24 85 89 98 46
#> point 52 has neighbours: 47 83 13 21 23 90
#> point 53 has neighbours: 83 21 12 81 96 19
#> point 54 has neighbours: 94 61 75 80 9
#> point 55 has neighbours: 62 3 32 38 56
#> point 56 has neighbours: 1 3 38 47 55
#> point 57 has neighbours: 10 86 87 14 100
#> point 58 has neighbours: 64 82 17 35 91
#> point 59 has neighbours: 6 30 46 66 67 93
#> point 60 has neighbours: 40 48 74 84
#> point 61 has neighbours: 34 44 54 75 80
#> point 62 has neighbours: 24 85 32 38 55
#> point 63 has neighbours: 4 18 95
#> point 64 has neighbours: 31 43 17 58 68 91
#> point 65 has neighbours: 10 42 76 78 87
#> point 66 has neighbours: 5 27 30 46 59 48
#> point 67 has neighbours: 6 30 59 97
#> point 68 has neighbours: 31 41 64 91 70
#> point 69 has neighbours: 27
#> point 70 has neighbours: 80 50 9 41 68 91 33 72
#> point 71 has neighbours: 40 50 84 26 29 73 88
#> point 72 has neighbours: 50 33 36 70
#> point 73 has neighbours: 26 71 79
#> point 74 has neighbours: 44 80 30 97 40 48 50 60
#> point 75 has neighbours: 13 94 34 54 61 98
#> point 76 has neighbours: 22 28 37 10 65 78 86 23
#> point 77 has neighbours: 25 18 45 49 99
#> point 78 has neighbours: 37 42 65 76
#> point 79 has neighbours: 7 26 73 92
#> point 80 has neighbours: 44 54 61 50 74 9 70
#> point 81 has neighbours: 12 43 53 96 99 17
#> point 82 has neighbours: 8 45 35 58 91
#> point 83 has neighbours: 86 21 23 52 53 2 19
#> point 84 has neighbours: 40 60 71
#> point 85 has neighbours: 27 24 51 62
#> point 86 has neighbours: 10 57 76 83 23 2 100
#> point 87 has neighbours: 10 42 57 65 14
#> point 88 has neighbours: 50 36 29 71
#> point 89 has neighbours: 51 34 44 98 46
#> point 90 has neighbours: 38 47 13 52
#> point 91 has neighbours: 64 82 58 68 16 33 70
#> point 92 has neighbours: 16 33 36 7 26 29 79
#> point 93 has neighbours: 44 6 46 59 97
#> point 94 has neighbours: 13 21 54 75 9
#> point 95 has neighbours: 4 15 63
#> point 96 has neighbours: 53 81 2 11 19 100 99
#> point 97 has neighbours: 44 6 30 67 93 74
#> point 98 has neighbours: 24 51 38 13 34 75 89
#> point 99 has neighbours: 81 96 11 25 45 77 17 35
#> point 100 has neighbours: 57 86 96 2 11 14
#> 
if(require(polyclip)) {
    CP <- list(x=c(0.49,0.35,0.15,0.20,0.35,0.42,
                   0.43,0.62,0.46,0.63,0.82,0.79),
               y=c(0.78,0.86,0.79,0.54,0.58,0.70,
                   0.51,0.46,0.31,0.20,0.37,0.54))
    ixy3 <- tileInfo(dxy,clipp=CP)
    options(width=120) # And enlarge the console window.
    print(ixy3) # 33 tiles are retained.
    print(ixy3$perimeters$perComps) # The tiles for points 9 and 94 have
                                    # been split into two components.
}
#> 
#> Edge lengths:
#> =============
#> point 1:  0.0390 0.0052 0.0373 
#> point 2:  0.0059 0.0377 0.0151 0.0435 
#> point 9:  0.0494 0.0343 0.0596 0.0262 0.0628 0.1671 
#>           0.1285 0.0380 0.0369 0.0819 
#> point 12: 0.0684 0.0129 0.0250 0.0353 0.0947 0.0628 
#>           0.0188 0.0934 
#> point 13: 0.0026 0.0562 0.0189 0.0724 0.0836 0.0866 
#> point 19: 0.0377 0.0532 0.0744 0.0546 
#> point 21: 0.0518 0.0530 0.0188 0.0262 0.0314 0.0592 
#>           0.1144 0.0193 0.0562 0.1288 
#> point 23: 0.0781 0.0066 0.1312 0.0273 0.1452 
#> point 26: 0.0018 0.0053 0.0058 
#> point 29: 0.0556 0.0058 0.0129 0.0626 
#> point 31: 0.0080 0.0820 0.0187 0.0631 0.0353 
#> point 33: 0.0358 0.0519 0.0193 0.0429 0.0432 
#> point 36: 0.0193 0.0507 0.1235 0.0273 0.1363 
#> point 41: 0.0631 0.0906 0.0384 0.0278 0.1671 0.0947 
#> point 43: 0.0080 0.0250 0.0263 
#> point 47: 0.0263 0.0273 0.0330 0.0728 0.0671 0.0390 
#> point 50: 0.0200 0.0501 0.0273 0.1079 0.0030 0.1346 
#>           0.0827 0.1185 
#> point 52: 0.0651 0.1288 0.0026 0.0763 0.0330 0.1312 
#> point 53: 0.0744 0.0378 0.0170 0.0316 0.0934 0.0530 
#>           0.0830 
#> point 54: 0.0216 0.0253 0.0380 
#> point 68: 0.0187 0.0787 0.0409 0.0857 0.0906 
#> point 70: 0.0343 0.0123 0.0384 0.0857 0.0845 0.0432 
#>           0.1462 0.0200 0.0021 0.0494 
#> point 71: 0.0384 0.0399 0.0030 
#> point 72: 0.0429 0.1363 0.0501 0.1462 
#> point 74: 0.0050 0.0827 0.0392 0.0755 
#> point 80: 0.0450 0.0343 0.0021 0.1185 0.0050 0.0798 
#> point 81: 0.0091 0.0691 0.0684 0.0316 
#> point 83: 0.0467 0.0151 0.0546 0.0830 0.0518 0.0651 
#>           0.0066 0.1067 
#> point 86: 0.0825 0.1067 0.0781 0.0462 
#> point 88: 0.0518 0.0626 0.0231 0.0384 0.1079 0.1235 
#> point 90: 0.0763 0.0866 0.0466 0.0728 
#> point 94: 0.0819 0.0751 0.0314 0.0193 0.0325 0.0189 
#> point 96: 0.0091 0.0170 0.0183 
#> 
#> Table of edge counts:
#> =====================
#> 
#>     3  4  5  6  7  8 10 
#>     6  8  5  7  1  3  3 
#> 
#> Tile areas:
#> ===========
#> 
#>   pt.1   pt.2   pt.9  pt.12  pt.13  pt.19  pt.21  pt.23  pt.26  pt.29  pt.31  pt.33  pt.36  pt.41  pt.43  pt.47  pt.50 
#> 0.0001 0.0003 0.0177 0.0111 0.0064 0.0028 0.0119 0.0075 0.0000 0.0005 0.0020 0.0022 0.0058 0.0141 0.0001 0.0043 0.0189 
#>  pt.52  pt.53  pt.54  pt.68  pt.70  pt.71  pt.72  pt.74  pt.80  pt.81  pt.83  pt.86  pt.88  pt.90  pt.94  pt.96 
#> 0.0117 0.0103 0.0003 0.0052 0.0153 0.0001 0.0060 0.0017 0.0035 0.0014 0.0121 0.0056 0.0103 0.0047 0.0013 0.0001 
#> 
#> 
#> Tile perimeters:
#> ================
#> 
#>   pt.1   pt.2   pt.9  pt.12  pt.13  pt.19  pt.21  pt.23  pt.26  pt.29  pt.31  pt.33  pt.36  pt.41  pt.43  pt.47  pt.50 
#> 0.0815 0.1022 0.6846 0.4112 0.3202 0.2199 0.5590 0.3884 0.0129 0.1370 0.2070 0.1931 0.3571 0.4817 0.0592 0.2655 0.5442 
#>  pt.52  pt.53  pt.54  pt.68  pt.70  pt.71  pt.72  pt.74  pt.80  pt.81  pt.83  pt.86  pt.88  pt.90  pt.94  pt.96 
#> 0.4370 0.3902 0.0849 0.3146 0.5163 0.0814 0.3755 0.2024 0.2847 0.1783 0.4295 0.3134 0.4073 0.2823 0.2592 0.0445 
#> 
#> 
#> Delaunay neighbours of tile centres:
#> =====================================
#> 
#> point 9 has neighbours: 21 94 54 80 12 41 70
#> point 12 has neighbours: 21 9 31 41 43 53 81
#> point 13 has neighbours: 38 21 52 90 94 75 98
#> point 19 has neighbours: 83 53 96 2
#> point 21 has neighbours: 83 13 52 94 9 12 53
#> point 23 has neighbours: 1 47 22 39 76 83 86 52
#> point 33 has neighbours: 91 16 36 70 72 92
#> point 36 has neighbours: 50 33 72 29 88 92
#> point 41 has neighbours: 9 12 31 68 70
#> point 50 has neighbours: 80 40 74 36 70 72 71 88
#> point 52 has neighbours: 47 83 13 21 23 90
#> point 53 has neighbours: 83 21 12 81 96 19
#> point 70 has neighbours: 80 50 9 41 68 91 33 72
#> point 72 has neighbours: 50 33 36 70
#> point 83 has neighbours: 86 21 23 52 53 2 19
#> point 86 has neighbours: 10 57 76 83 23 2 100
#> point 88 has neighbours: 50 36 29 71
#> point 90 has neighbours: 38 47 13 52
#> 
#> $pt.1
#> [1] 0.08147883
#> 
#> $pt.2
#> [1] 0.1021949
#> 
#> $pt.9
#> [1] 0.1432715 0.5412919
#> 
#> $pt.12
#> [1] 0.4112145
#> 
#> $pt.13
#> [1] 0.3201934
#> 
#> $pt.19
#> [1] 0.219861
#> 
#> $pt.21
#> [1] 0.5589993
#> 
#> $pt.23
#> [1] 0.3883753
#> 
#> $pt.26
#> [1] 0.01289074
#> 
#> $pt.29
#> [1] 0.1369739
#> 
#> $pt.31
#> [1] 0.2070488
#> 
#> $pt.33
#> [1] 0.1930612
#> 
#> $pt.36
#> [1] 0.3570848
#> 
#> $pt.41
#> [1] 0.4816582
#> 
#> $pt.43
#> [1] 0.05921131
#> 
#> $pt.47
#> [1] 0.2655484
#> 
#> $pt.50
#> [1] 0.5441788
#> 
#> $pt.52
#> [1] 0.4370433
#> 
#> $pt.53
#> [1] 0.3901958
#> 
#> $pt.54
#> [1] 0.08488556
#> 
#> $pt.68
#> [1] 0.3145729
#> 
#> $pt.70
#> [1] 0.5162717
#> 
#> $pt.71
#> [1] 0.08135254
#> 
#> $pt.72
#> [1] 0.3755241
#> 
#> $pt.74
#> [1] 0.2023652
#> 
#> $pt.80
#> [1] 0.284689
#> 
#> $pt.81
#> [1] 0.1783091
#> 
#> $pt.83
#> [1] 0.4295172
#> 
#> $pt.86
#> [1] 0.3133689
#> 
#> $pt.88
#> [1] 0.4072897
#> 
#> $pt.90
#> [1] 0.2823451
#> 
#> $pt.94
#> [1] 0.18850193 0.07071162
#> 
#> $pt.96
#> [1] 0.04446377
#>