inst/test-scripts/test-identify.R

# Unfortunately, this cannot be run non-interactively (or at least
# I have not thought of a way to do so)

library(gridGraphics)
                             
notrun <- function() {
    plot(1)
    identify(1)
    dl <- recordPlot()
    dev.off()
    plotdiff(expression(replayPlot(dl)), "identify")
}

Try the gridGraphics package in your browser

Any scripts or data that you put into this service are public.

gridGraphics documentation built on Dec. 15, 2020, 5:10 p.m.