tests/testthat/test-ggplot.R

context("canvasXpress ggplot conversions")

test_that("simple scatterplot", {
    gg1 <- ggplot(data = mpg,
                  aes(x      = displ,
                      y      = hwy)) +
        geom_point(aes(color = factor(cyl)))

    print(gg1)
    canvasXpress(gg1)
})
neuhausi/canvasXpress documentation built on May 13, 2024, 2:48 p.m.