Selects the dark elements from the qr_code object and returns their coordinates. This can be useful when you want to create a QR code with a custom style.

coordinates(x)

Arguments

x

the qr_code object.

Value

A data.frame with the column and row number of the dark elements.

See also

Author

Thierry Onkelinx

Examples

x <- qr_code("test")
plot(x)

head(coordinates(x))
#>    column row
#> 85      4  24
#> 86      5  24
#> 87      6  24
#> 88      7  24
#> 89      8  24
#> 90      9  24
plot(coordinates(x), pch = 19, cex = 2, asp = 1)