Skip to content

Commit

Permalink
Remove y-axis grid ticks tests
Browse files Browse the repository at this point in the history
The y_grid_lines() function no longer exists because the y-axis grid
lines are calculated at the panel-level, not the plot-level.
  • Loading branch information
joshuaulrich committed Oct 9, 2023
1 parent 95c8eed commit 3e02ff1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions inst/tinytest/test-plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ x <- rnorm(10)
p <- plot(xts(x, .Date(1:10)))
expect_equivalent(range(x), p$get_ylim(), info = info_msg)

info_msg <- "test.yaxis.ticks"
x <- xts(rnorm(50), .Date(1:50))
ylim <- c(0, 10) # default case
p1 <- plot(x)
expect_identical(pretty(ylim, 5), p1$Env$y_grid_lines(ylim), info = info_msg)
p2 <- plot(x, yaxis.ticks = 10) # twice as many y-axis grid lines
expect_identical(pretty(ylim, 10), p2$Env$y_grid_lines(ylim), info = info_msg)

get_xcoords_respects_object_tzone <-
function()
{
Expand Down

0 comments on commit 3e02ff1

Please sign in to comment.