coordinates: Extract coordinates from a QR code object.

View source: R/coordinates.R

coordinatesR Documentation

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)

Arguments

x

the qr_code object.

Value

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

Author(s)

Thierry Onkelinx

See Also

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

Examples

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

qrcode documentation built on Nov. 11, 2023, 5:07 p.m.