plot.qr_code | R Documentation |
Plot the QR code This function plots to QR code to the open device.
## S3 method for class 'qr_code'
plot(x, col = c("white", "black"), y, ...)
## S3 method for class 'qr_logo'
plot(x, col = c("white", "black"), y, ...)
x |
the |
col |
Define the colours.
The first element refers to |
y |
currently ignored |
... |
currently ignored |
Thierry Onkelinx
opencv::ocv_qr_detect()
for reading QR codes.
Other qr:
coordinates()
,
generate_svg()
,
print.qr_code()
,
qr_code()
,
qr_event()
,
qr_location()
,
qr_sepa()
,
qr_wifi()
Other qr:
coordinates()
,
generate_svg()
,
print.qr_code()
,
qr_code()
,
qr_event()
,
qr_location()
,
qr_sepa()
,
qr_wifi()
qr <- qr_code("HELLO WORLD")
plot(qr)
# Test the QR code with the opencv package
if (requireNamespace("opencv")) {
png("test.png")
plot(qr)
dev.off()
opencv::ocv_qr_detect(opencv::ocv_read('test.png'))
unlink("test.png")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.