tests/testthat/test-other-ggplot.R

context("canvasXpress ggplot conversions")

test_that("simple scatterplot", {
    testthat::skip_if_not_installed("ggplot")

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

    print(gg1)
    canvasXpress(gg1)
})

Try the canvasXpress package in your browser

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

canvasXpress documentation built on June 23, 2024, 5:06 p.m.