Skip to content

Commit 1c45d76

Browse files
committed
Axis tests started
1 parent 757a4f3 commit 1c45d76

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/testthat/tests-axis.R

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
context("axis")
2+
3+
test_that("axis",{
4+
5+
## Setup up coordinate system (with x == y aspect ratio):
6+
plot(c(-2,3), c(-1,5), axes=FALSE)
7+
## the x- and y-axis, and an integer grid
8+
axis(1)
9+
axis(2)
10+
axis(3)
11+
12+
})
13+
14+
test_that("axis gsplot",{
15+
gs = points(gsplot(), c(-2,3), c(-1,5)) %>%
16+
axis(3)
17+
expect_equal(names(gs), c("view","par","axis"))
18+
})

0 commit comments

Comments
 (0)