Skip to content

Commit ef206d1

Browse files
author
Jordan S Read
committed
changes per review
1 parent 14d4dd8 commit ef206d1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

R/axis.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ axis.gsplot <- function(object, ..., n.minor=0, tcl.minor=0.15, reverse=NULL, ap
7272
custom.config = object[["global"]][["config"]][["config.file"]])
7373

7474
if (length(args$extracted.args) > 0){
75-
warning('axs.gsplot is not configured to support embedded function calls', call. = FALSE)
75+
warning('axis.gsplot is not configured to support embedded function calls', call. = FALSE)
7676
}
7777

7878
user.args <- args$call.args

tests/testthat/tests-axis.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ test_that("special args given to axis are retained", {
9898
expect_equal(gs$side.1$axis[["tcl.minor"]], -0.136)
9999
})
100100

101+
test_that("style params given to points calls are in side par, style on axis stay there",{
102+
gs <- points(gsplot(), 1, 0, tcl=0.5) %>% axis(side=1, tcl = -0.136)
103+
expect_equal(gs$side.1$axis[["tcl"]], -0.136)
104+
expect_equal(gs$side.1$par[["tcl"]], 0.5)
105+
})
106+
107+
101108
context("axis user flipped on")
102109

103110
test_that("axis user FALSE by default",{

0 commit comments

Comments
 (0)