inst/test-scripts/test-dotchart.R

library(gridGraphics)

dotchart1 <- function() {
    dotchart(VADeaths, main = "Death Rates in Virginia - 1940")
}

dotchart2 <- function() {
    par(xaxs = "i")  # 0 -- 100\%
    dotchart(t(VADeaths), xlim = c(0,100),
             main = "Death Rates in Virginia - 1940")
}

plotdiff(expression(dotchart1()), "dotchart-1")
plotdiff(expression(dotchart2()), "dotchart-2")

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.