summaryrefslogtreecommitdiff
path: root/tests/testthat/test-gg_csobczak.R
diff options
context:
space:
mode:
authorChris Sobczak <chris@sobczak.family>2026-06-10 15:58:27 -0700
committerChris Sobczak <chris@sobczak.family>2026-06-10 15:58:27 -0700
commit617b79fb3e0707b9bd0b446db73a2b1d7f6f3f94 (patch)
tree4a0b566759e57b2cd2e78a34e8c5f50e15a35183 /tests/testthat/test-gg_csobczak.R
parent967618a8afd690064fc26631340edac8ab584d11 (diff)
Add corplot
Diffstat (limited to 'tests/testthat/test-gg_csobczak.R')
-rw-r--r--tests/testthat/test-gg_csobczak.R7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/testthat/test-gg_csobczak.R b/tests/testthat/test-gg_csobczak.R
new file mode 100644
index 0000000..ca99bef
--- /dev/null
+++ b/tests/testthat/test-gg_csobczak.R
@@ -0,0 +1,7 @@
+test_that("returns a ggplot object", {
+ df <- data.frame(x = rnorm(10), y = rnorm(10))
+ p <- ggplot2::ggplot(data = df, ggplot2::aes(x = x, y = y)) +
+ ggplot2::geom_point()
+ p <- gg_csobczak(p)
+ inherits(p, 'ggplot')
+})