grid_calc(columns = 20, rows = columns)
Returns a list of 4: coordsThe coordinates to utilize for plotting the grid columnsThe number of columns rowsThe number of rows pointspoints and labels
Calculate gridlines to plot ontop of an image.
grid_calc()$coords x xend y yend 1 0 0 0 20 2 1 1 0 20 3 2 2 0 20 4 3 3 0 20 5 4 4 0 20 6 5 5 0 20 7 6 6 0 20 8 7 7 0 20 9 8 8 0 20 10 9 9 0 20 11 10 10 0 20 12 11 11 0 20 13 12 12 0 20 14 13 13 0 20 15 14 14 0 20 16 15 15 0 20 17 16 16 0 20 18 17 17 0 20 19 18 18 0 20 20 19 19 0 20 21 20 20 0 20 22 0 20 0 0 23 0 20 1 1 24 0 20 2 2 25 0 20 3 3 26 0 20 4 4 27 0 20 5 5 28 0 20 6 6 29 0 20 7 7 30 0 20 8 8 31 0 20 9 9 32 0 20 10 10 33 0 20 11 11 34 0 20 12 12 35 0 20 13 13 36 0 20 14 14 37 0 20 15 15 38 0 20 16 16 39 0 20 17 17 40 0 20 18 18 41 0 20 19 19 42 0 20 20 20 $rows [1] 20 $columns [1] 20 $points w h coords labs x y 1 1 1 (1,1) Q15 0.5 0.5 2 2 1 (2,1) R15 1.5 0.5 3 3 1 (3,1) S15 2.5 0.5 4 4 1 (4,1) T15 3.5 0.5 5 5 1 (5,1) U15 4.5 0.5 6 6 1 (6,1) V15 5.5 0.5 7 7 1 (7,1) W15 6.5 0.5 8 8 1 (8,1) X15 7.5 0.5 9 9 1 (9,1) Y15 8.5 0.5 10 10 1 (10,1) Z15 9.5 0.5 11 11 1 (11,1) A16 10.5 0.5 12 12 1 (12,1) B16 11.5 0.5 13 13 1 (13,1) C16 12.5 0.5 14 14 1 (14,1) D16 13.5 0.5 15 15 1 (15,1) E16 14.5 0.5 16 16 1 (16,1) F16 15.5 0.5 17 17 1 (17,1) G16 16.5 0.5 18 18 1 (18,1) H16 17.5 0.5 19 19 1 (19,1) I16 18.5 0.5 20 20 1 (20,1) J16 19.5 0.5 21 1 2 (1,2) W14 0.5 1.5 22 2 2 (2,2) X14 1.5 1.5 23 3 2 (3,2) Y14 2.5 1.5 24 4 2 (4,2) Z14 3.5 1.5 25 5 2 (5,2) A15 4.5 1.5 26 6 2 (6,2) B15 5.5 1.5 27 7 2 (7,2) C15 6.5 1.5 28 8 2 (8,2) D15 7.5 1.5 29 9 2 (9,2) E15 8.5 1.5 30 10 2 (10,2) F15 9.5 1.5 31 11 2 (11,2) G15 10.5 1.5 32 12 2 (12,2) H15 11.5 1.5 33 13 2 (13,2) I15 12.5 1.5 34 14 2 (14,2) J15 13.5 1.5 35 15 2 (15,2) K15 14.5 1.5 36 16 2 (16,2) L15 15.5 1.5 37 17 2 (17,2) M15 16.5 1.5 38 18 2 (18,2) N15 17.5 1.5 39 19 2 (19,2) O15 18.5 1.5 40 20 2 (20,2) P15 19.5 1.5 41 1 3 (1,3) C14 0.5 2.5 42 2 3 (2,3) D14 1.5 2.5 43 3 3 (3,3) E14 2.5 2.5 44 4 3 (4,3) F14 3.5 2.5 45 5 3 (5,3) G14 4.5 2.5 46 6 3 (6,3) H14 5.5 2.5 47 7 3 (7,3) I14 6.5 2.5 48 8 3 (8,3) J14 7.5 2.5 49 9 3 (9,3) K14 8.5 2.5 50 10 3 (10,3) L14 9.5 2.5 51 11 3 (11,3) M14 10.5 2.5 52 12 3 (12,3) N14 11.5 2.5 53 13 3 (13,3) O14 12.5 2.5 54 14 3 (14,3) P14 13.5 2.5 55 15 3 (15,3) Q14 14.5 2.5 56 16 3 (16,3) R14 15.5 2.5 57 17 3 (17,3) S14 16.5 2.5 58 18 3 (18,3) T14 17.5 2.5 59 19 3 (19,3) U14 18.5 2.5 60 20 3 (20,3) V14 19.5 2.5 61 1 4 (1,4) I13 0.5 3.5 62 2 4 (2,4) J13 1.5 3.5 63 3 4 (3,4) K13 2.5 3.5 64 4 4 (4,4) L13 3.5 3.5 65 5 4 (5,4) M13 4.5 3.5 66 6 4 (6,4) N13 5.5 3.5 67 7 4 (7,4) O13 6.5 3.5 68 8 4 (8,4) P13 7.5 3.5 69 9 4 (9,4) Q13 8.5 3.5 70 10 4 (10,4) R13 9.5 3.5 71 11 4 (11,4) S13 10.5 3.5 72 12 4 (12,4) T13 11.5 3.5 73 13 4 (13,4) U13 12.5 3.5 74 14 4 (14,4) V13 13.5 3.5 75 15 4 (15,4) W13 14.5 3.5 76 16 4 (16,4) X13 15.5 3.5 77 17 4 (17,4) Y13 16.5 3.5 78 18 4 (18,4) Z13 17.5 3.5 79 19 4 (19,4) A14 18.5 3.5 80 20 4 (20,4) B14 19.5 3.5 81 1 5 (1,5) O12 0.5 4.5 82 2 5 (2,5) P12 1.5 4.5 83 3 5 (3,5) Q12 2.5 4.5 84 4 5 (4,5) R12 3.5 4.5 85 5 5 (5,5) S12 4.5 4.5 86 6 5 (6,5) T12 5.5 4.5 87 7 5 (7,5) U12 6.5 4.5 88 8 5 (8,5) V12 7.5 4.5 89 9 5 (9,5) W12 8.5 4.5 90 10 5 (10,5) X12 9.5 4.5 91 11 5 (11,5) Y12 10.5 4.5 92 12 5 (12,5) Z12 11.5 4.5 93 13 5 (13,5) A13 12.5 4.5 94 14 5 (14,5) B13 13.5 4.5 95 15 5 (15,5) C13 14.5 4.5 96 16 5 (16,5) D13 15.5 4.5 97 17 5 (17,5) E13 16.5 4.5 98 18 5 (18,5) F13 17.5 4.5 99 19 5 (19,5) G13 18.5 4.5 100 20 5 (20,5) H13 19.5 4.5 101 1 6 (1,6) U11 0.5 5.5 102 2 6 (2,6) V11 1.5 5.5 103 3 6 (3,6) W11 2.5 5.5 104 4 6 (4,6) X11 3.5 5.5 105 5 6 (5,6) Y11 4.5 5.5 106 6 6 (6,6) Z11 5.5 5.5 107 7 6 (7,6) A12 6.5 5.5 108 8 6 (8,6) B12 7.5 5.5 109 9 6 (9,6) C12 8.5 5.5 110 10 6 (10,6) D12 9.5 5.5 111 11 6 (11,6) E12 10.5 5.5 112 12 6 (12,6) F12 11.5 5.5 113 13 6 (13,6) G12 12.5 5.5 114 14 6 (14,6) H12 13.5 5.5 115 15 6 (15,6) I12 14.5 5.5 116 16 6 (16,6) J12 15.5 5.5 117 17 6 (17,6) K12 16.5 5.5 118 18 6 (18,6) L12 17.5 5.5 119 19 6 (19,6) M12 18.5 5.5 120 20 6 (20,6) N12 19.5 5.5 121 1 7 (1,7) A11 0.5 6.5 122 2 7 (2,7) B11 1.5 6.5 123 3 7 (3,7) C11 2.5 6.5 124 4 7 (4,7) D11 3.5 6.5 125 5 7 (5,7) E11 4.5 6.5 126 6 7 (6,7) F11 5.5 6.5 127 7 7 (7,7) G11 6.5 6.5 128 8 7 (8,7) H11 7.5 6.5 129 9 7 (9,7) I11 8.5 6.5 130 10 7 (10,7) J11 9.5 6.5 131 11 7 (11,7) K11 10.5 6.5 132 12 7 (12,7) L11 11.5 6.5 133 13 7 (13,7) M11 12.5 6.5 134 14 7 (14,7) N11 13.5 6.5 135 15 7 (15,7) O11 14.5 6.5 136 16 7 (16,7) P11 15.5 6.5 137 17 7 (17,7) Q11 16.5 6.5 138 18 7 (18,7) R11 17.5 6.5 139 19 7 (19,7) S11 18.5 6.5 140 20 7 (20,7) T11 19.5 6.5 141 1 8 (1,8) G10 0.5 7.5 142 2 8 (2,8) H10 1.5 7.5 143 3 8 (3,8) I10 2.5 7.5 144 4 8 (4,8) J10 3.5 7.5 145 5 8 (5,8) K10 4.5 7.5 146 6 8 (6,8) L10 5.5 7.5 147 7 8 (7,8) M10 6.5 7.5 148 8 8 (8,8) N10 7.5 7.5 149 9 8 (9,8) O10 8.5 7.5 150 10 8 (10,8) P10 9.5 7.5 151 11 8 (11,8) Q10 10.5 7.5 152 12 8 (12,8) R10 11.5 7.5 153 13 8 (13,8) S10 12.5 7.5 154 14 8 (14,8) T10 13.5 7.5 155 15 8 (15,8) U10 14.5 7.5 156 16 8 (16,8) V10 15.5 7.5 157 17 8 (17,8) W10 16.5 7.5 158 18 8 (18,8) X10 17.5 7.5 159 19 8 (19,8) Y10 18.5 7.5 160 20 8 (20,8) Z10 19.5 7.5 161 1 9 (1,9) M9 0.5 8.5 162 2 9 (2,9) N9 1.5 8.5 163 3 9 (3,9) O9 2.5 8.5 164 4 9 (4,9) P9 3.5 8.5 165 5 9 (5,9) Q9 4.5 8.5 166 6 9 (6,9) R9 5.5 8.5 167 7 9 (7,9) S9 6.5 8.5 168 8 9 (8,9) T9 7.5 8.5 169 9 9 (9,9) U9 8.5 8.5 170 10 9 (10,9) V9 9.5 8.5 171 11 9 (11,9) W9 10.5 8.5 172 12 9 (12,9) X9 11.5 8.5 173 13 9 (13,9) Y9 12.5 8.5 174 14 9 (14,9) Z9 13.5 8.5 175 15 9 (15,9) A10 14.5 8.5 176 16 9 (16,9) B10 15.5 8.5 177 17 9 (17,9) C10 16.5 8.5 178 18 9 (18,9) D10 17.5 8.5 179 19 9 (19,9) E10 18.5 8.5 180 20 9 (20,9) F10 19.5 8.5 181 1 10 (1,10) S8 0.5 9.5 182 2 10 (2,10) T8 1.5 9.5 183 3 10 (3,10) U8 2.5 9.5 184 4 10 (4,10) V8 3.5 9.5 185 5 10 (5,10) W8 4.5 9.5 186 6 10 (6,10) X8 5.5 9.5 187 7 10 (7,10) Y8 6.5 9.5 188 8 10 (8,10) Z8 7.5 9.5 189 9 10 (9,10) A9 8.5 9.5 190 10 10 (10,10) B9 9.5 9.5 191 11 10 (11,10) C9 10.5 9.5 192 12 10 (12,10) D9 11.5 9.5 193 13 10 (13,10) E9 12.5 9.5 194 14 10 (14,10) F9 13.5 9.5 195 15 10 (15,10) G9 14.5 9.5 196 16 10 (16,10) H9 15.5 9.5 197 17 10 (17,10) I9 16.5 9.5 198 18 10 (18,10) J9 17.5 9.5 199 19 10 (19,10) K9 18.5 9.5 200 20 10 (20,10) L9 19.5 9.5 201 1 11 (1,11) Y7 0.5 10.5 202 2 11 (2,11) Z7 1.5 10.5 203 3 11 (3,11) A8 2.5 10.5 204 4 11 (4,11) B8 3.5 10.5 205 5 11 (5,11) C8 4.5 10.5 206 6 11 (6,11) D8 5.5 10.5 207 7 11 (7,11) E8 6.5 10.5 208 8 11 (8,11) F8 7.5 10.5 209 9 11 (9,11) G8 8.5 10.5 210 10 11 (10,11) H8 9.5 10.5 211 11 11 (11,11) I8 10.5 10.5 212 12 11 (12,11) J8 11.5 10.5 213 13 11 (13,11) K8 12.5 10.5 214 14 11 (14,11) L8 13.5 10.5 215 15 11 (15,11) M8 14.5 10.5 216 16 11 (16,11) N8 15.5 10.5 217 17 11 (17,11) O8 16.5 10.5 218 18 11 (18,11) P8 17.5 10.5 219 19 11 (19,11) Q8 18.5 10.5 220 20 11 (20,11) R8 19.5 10.5 221 1 12 (1,12) E7 0.5 11.5 222 2 12 (2,12) F7 1.5 11.5 223 3 12 (3,12) G7 2.5 11.5 224 4 12 (4,12) H7 3.5 11.5 225 5 12 (5,12) I7 4.5 11.5 226 6 12 (6,12) J7 5.5 11.5 227 7 12 (7,12) K7 6.5 11.5 228 8 12 (8,12) L7 7.5 11.5 229 9 12 (9,12) M7 8.5 11.5 230 10 12 (10,12) N7 9.5 11.5 231 11 12 (11,12) O7 10.5 11.5 232 12 12 (12,12) P7 11.5 11.5 233 13 12 (13,12) Q7 12.5 11.5 234 14 12 (14,12) R7 13.5 11.5 235 15 12 (15,12) S7 14.5 11.5 236 16 12 (16,12) T7 15.5 11.5 237 17 12 (17,12) U7 16.5 11.5 238 18 12 (18,12) V7 17.5 11.5 239 19 12 (19,12) W7 18.5 11.5 240 20 12 (20,12) X7 19.5 11.5 241 1 13 (1,13) K6 0.5 12.5 242 2 13 (2,13) L6 1.5 12.5 243 3 13 (3,13) M6 2.5 12.5 244 4 13 (4,13) N6 3.5 12.5 245 5 13 (5,13) O6 4.5 12.5 246 6 13 (6,13) P6 5.5 12.5 247 7 13 (7,13) Q6 6.5 12.5 248 8 13 (8,13) R6 7.5 12.5 249 9 13 (9,13) S6 8.5 12.5 250 10 13 (10,13) T6 9.5 12.5 251 11 13 (11,13) U6 10.5 12.5 252 12 13 (12,13) V6 11.5 12.5 253 13 13 (13,13) W6 12.5 12.5 254 14 13 (14,13) X6 13.5 12.5 255 15 13 (15,13) Y6 14.5 12.5 256 16 13 (16,13) Z6 15.5 12.5 257 17 13 (17,13) A7 16.5 12.5 258 18 13 (18,13) B7 17.5 12.5 259 19 13 (19,13) C7 18.5 12.5 260 20 13 (20,13) D7 19.5 12.5 261 1 14 (1,14) Q5 0.5 13.5 262 2 14 (2,14) R5 1.5 13.5 263 3 14 (3,14) S5 2.5 13.5 264 4 14 (4,14) T5 3.5 13.5 265 5 14 (5,14) U5 4.5 13.5 266 6 14 (6,14) V5 5.5 13.5 267 7 14 (7,14) W5 6.5 13.5 268 8 14 (8,14) X5 7.5 13.5 269 9 14 (9,14) Y5 8.5 13.5 270 10 14 (10,14) Z5 9.5 13.5 271 11 14 (11,14) A6 10.5 13.5 272 12 14 (12,14) B6 11.5 13.5 273 13 14 (13,14) C6 12.5 13.5 274 14 14 (14,14) D6 13.5 13.5 275 15 14 (15,14) E6 14.5 13.5 276 16 14 (16,14) F6 15.5 13.5 277 17 14 (17,14) G6 16.5 13.5 278 18 14 (18,14) H6 17.5 13.5 279 19 14 (19,14) I6 18.5 13.5 280 20 14 (20,14) J6 19.5 13.5 281 1 15 (1,15) W4 0.5 14.5 282 2 15 (2,15) X4 1.5 14.5 283 3 15 (3,15) Y4 2.5 14.5 284 4 15 (4,15) Z4 3.5 14.5 285 5 15 (5,15) A5 4.5 14.5 286 6 15 (6,15) B5 5.5 14.5 287 7 15 (7,15) C5 6.5 14.5 288 8 15 (8,15) D5 7.5 14.5 289 9 15 (9,15) E5 8.5 14.5 290 10 15 (10,15) F5 9.5 14.5 291 11 15 (11,15) G5 10.5 14.5 292 12 15 (12,15) H5 11.5 14.5 293 13 15 (13,15) I5 12.5 14.5 294 14 15 (14,15) J5 13.5 14.5 295 15 15 (15,15) K5 14.5 14.5 296 16 15 (16,15) L5 15.5 14.5 297 17 15 (17,15) M5 16.5 14.5 298 18 15 (18,15) N5 17.5 14.5 299 19 15 (19,15) O5 18.5 14.5 300 20 15 (20,15) P5 19.5 14.5 301 1 16 (1,16) C4 0.5 15.5 302 2 16 (2,16) D4 1.5 15.5 303 3 16 (3,16) E4 2.5 15.5 304 4 16 (4,16) F4 3.5 15.5 305 5 16 (5,16) G4 4.5 15.5 306 6 16 (6,16) H4 5.5 15.5 307 7 16 (7,16) I4 6.5 15.5 308 8 16 (8,16) J4 7.5 15.5 309 9 16 (9,16) K4 8.5 15.5 310 10 16 (10,16) L4 9.5 15.5 311 11 16 (11,16) M4 10.5 15.5 312 12 16 (12,16) N4 11.5 15.5 313 13 16 (13,16) O4 12.5 15.5 314 14 16 (14,16) P4 13.5 15.5 315 15 16 (15,16) Q4 14.5 15.5 316 16 16 (16,16) R4 15.5 15.5 317 17 16 (17,16) S4 16.5 15.5 318 18 16 (18,16) T4 17.5 15.5 319 19 16 (19,16) U4 18.5 15.5 320 20 16 (20,16) V4 19.5 15.5 321 1 17 (1,17) I3 0.5 16.5 322 2 17 (2,17) J3 1.5 16.5 323 3 17 (3,17) K3 2.5 16.5 324 4 17 (4,17) L3 3.5 16.5 325 5 17 (5,17) M3 4.5 16.5 326 6 17 (6,17) N3 5.5 16.5 327 7 17 (7,17) O3 6.5 16.5 328 8 17 (8,17) P3 7.5 16.5 329 9 17 (9,17) Q3 8.5 16.5 330 10 17 (10,17) R3 9.5 16.5 331 11 17 (11,17) S3 10.5 16.5 332 12 17 (12,17) T3 11.5 16.5 333 13 17 (13,17) U3 12.5 16.5 334 14 17 (14,17) V3 13.5 16.5 335 15 17 (15,17) W3 14.5 16.5 336 16 17 (16,17) X3 15.5 16.5 337 17 17 (17,17) Y3 16.5 16.5 338 18 17 (18,17) Z3 17.5 16.5 339 19 17 (19,17) A4 18.5 16.5 340 20 17 (20,17) B4 19.5 16.5 341 1 18 (1,18) O2 0.5 17.5 342 2 18 (2,18) P2 1.5 17.5 343 3 18 (3,18) Q2 2.5 17.5 344 4 18 (4,18) R2 3.5 17.5 345 5 18 (5,18) S2 4.5 17.5 346 6 18 (6,18) T2 5.5 17.5 347 7 18 (7,18) U2 6.5 17.5 348 8 18 (8,18) V2 7.5 17.5 349 9 18 (9,18) W2 8.5 17.5 350 10 18 (10,18) X2 9.5 17.5 351 11 18 (11,18) Y2 10.5 17.5 352 12 18 (12,18) Z2 11.5 17.5 353 13 18 (13,18) A3 12.5 17.5 354 14 18 (14,18) B3 13.5 17.5 355 15 18 (15,18) C3 14.5 17.5 356 16 18 (16,18) D3 15.5 17.5 357 17 18 (17,18) E3 16.5 17.5 358 18 18 (18,18) F3 17.5 17.5 359 19 18 (19,18) G3 18.5 17.5 360 20 18 (20,18) H3 19.5 17.5 361 1 19 (1,19) U1 0.5 18.5 362 2 19 (2,19) V1 1.5 18.5 363 3 19 (3,19) W1 2.5 18.5 364 4 19 (4,19) X1 3.5 18.5 365 5 19 (5,19) Y1 4.5 18.5 366 6 19 (6,19) Z1 5.5 18.5 367 7 19 (7,19) A2 6.5 18.5 368 8 19 (8,19) B2 7.5 18.5 369 9 19 (9,19) C2 8.5 18.5 370 10 19 (10,19) D2 9.5 18.5 371 11 19 (11,19) E2 10.5 18.5 372 12 19 (12,19) F2 11.5 18.5 373 13 19 (13,19) G2 12.5 18.5 374 14 19 (14,19) H2 13.5 18.5 375 15 19 (15,19) I2 14.5 18.5 376 16 19 (16,19) J2 15.5 18.5 377 17 19 (17,19) K2 16.5 18.5 378 18 19 (18,19) L2 17.5 18.5 379 19 19 (19,19) M2 18.5 18.5 380 20 19 (20,19) N2 19.5 18.5 381 1 20 (1,20) A1 0.5 19.5 382 2 20 (2,20) B1 1.5 19.5 383 3 20 (3,20) C1 2.5 19.5 384 4 20 (4,20) D1 3.5 19.5 385 5 20 (5,20) E1 4.5 19.5 386 6 20 (6,20) F1 5.5 19.5 387 7 20 (7,20) G1 6.5 19.5 388 8 20 (8,20) H1 7.5 19.5 389 9 20 (9,20) I1 8.5 19.5 390 10 20 (10,20) J1 9.5 19.5 391 11 20 (11,20) K1 10.5 19.5 392 12 20 (12,20) L1 11.5 19.5 393 13 20 (13,20) M1 12.5 19.5 394 14 20 (14,20) N1 13.5 19.5 395 15 20 (15,20) O1 14.5 19.5 396 16 20 (16,20) P1 15.5 19.5 397 17 20 (17,20) Q1 16.5 19.5 398 18 20 (18,20) R1 17.5 19.5 399 19 20 (19,20) S1 18.5 19.5 400 20 20 (20,20) T1 19.5 19.5