Learn R Programming

qrcode (version 0.3.0)

coordinates: Extract coordinates from a QR code object.

Description

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.

Usage

coordinates(x)

Value

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

Arguments

x

the qr_code object.

Author

Thierry Onkelinx

See Also

Other qr: generate_svg(), plot.qr_code(), print.qr_code(), qr_code(), qr_event(), qr_location(), qr_sepa(), qr_wifi()

Examples

Run this code
x <- qr_code("test")
plot(x)
head(coordinates(x))
plot(coordinates(x), pch = 19, cex = 2, asp = 1)

Run the code above in your browser using DataLab