inst/test-scripts/test-assocplot.R

library(gridGraphics)

assocplot1 <- function() {
    ## Aggregate over sex:
    x <- margin.table(HairEyeColor, c(1, 2))
    assocplot(x, main = "Relation between hair and eye color")
}

plotdiff(expression(assocplot1()), "assocplot-1")

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.