inst/test-scripts/test-lines.R

library(gridGraphics)

lines1 <- function() {
    plot(cars, main = "Stopping Distance versus Speed")
    lines(stats::lowess(cars))
}

## Straight to PNG to avoid PDF->PNG funny business
plotdiff(expression(lines1()), "lines-1", dev="png")

plotdiffResult()

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.