Skip to content

Commit 864d64f

Browse files
committed
Fix variable names in visual tests
1 parent 4f57432 commit 864d64f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

visual_test/lines.r

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,26 +74,26 @@ nzmap + geom_abline(intercept = 130, slope = -1) + coord_map()
7474
save_vtest("geom_abline: intercept=130, slope=-1 projection=mercator")
7575

7676

77-
nzmap + geom_hline(yintercept = -45) + coord_map(project = "cylindrical")
77+
nzmap + geom_hline(yintercept = -45) + coord_map(projection = "cylindrical")
7878
save_vtest("geom_hline: intercept=-45, projection=cylindrical")
7979

80-
nzmap + geom_vline(xintercept = 172) + coord_map(project = "cylindrical")
80+
nzmap + geom_vline(xintercept = 172) + coord_map(projection = "cylindrical")
8181
save_vtest("geom_vline: intercept=172, projection=cylindrical")
8282

83-
nzmap + geom_abline(intercept = 130, slope = -1) + coord_map(project = "cylindrical")
83+
nzmap + geom_abline(intercept = 130, slope = -1) + coord_map(projection = "cylindrical")
8484
save_vtest("geom_abline: intercept=130, slope=-1, projection=cylindrical")
8585

8686

8787
nzmap + geom_hline(yintercept = -45) +
88-
coord_map(project = 'azequalarea', orientation = c(-36.92, 174.6, 0))
88+
coord_map(projection = 'azequalarea', orientation = c(-36.92, 174.6, 0))
8989
save_vtest("geom_hline: intercept=-45, projection=azequalarea")
9090

9191
nzmap + geom_vline(xintercept = 172) +
92-
coord_map(project = 'azequalarea', orientation = c(-36.92, 174.6, 0))
92+
coord_map(projection = 'azequalarea', orientation = c(-36.92, 174.6, 0))
9393
save_vtest("geom_vline: intercept=172, projection=azequalara")
9494

9595
nzmap + geom_abline(intercept = 130, slope = -1) +
96-
coord_map(project = 'azequalarea', orientation = c(-36.92, 174.6, 0))
96+
coord_map(projection = 'azequalarea', orientation = c(-36.92, 174.6, 0))
9797
save_vtest("geom_abline: intercept=130, slope=-1, projection=azequalarea")
9898

9999
end_vcontext()

visual_test/minor-breaks.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ save_vtest("manual minor breaks with coord_polar")
1111

1212
set.seed(342)
1313
df <- data.frame(
14-
date = seq(as.Date("2012-2-29"), len = 100, by = "1 day")[sample(100, 50)],
14+
date = seq(as.Date("2012-2-29"), length.out = 100, by = "1 day")[sample(100, 50)],
1515
price = runif(50)
1616
)
1717
df <- df[order(df$date), ]

visual_test/violin.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ggplot(dat, aes(x = as.numeric(1), y = y)) + geom_violin()
4242
save_vtest("continuous x axis, single group (center should be at 1.0)")
4343

4444

45-
ggplot(dat, aes(x=x, y=y)) + geom_violin(quantiles=c(0.25,0.5,0.75))
45+
ggplot(dat, aes(x=x, y=y)) + geom_violin(draw_quantiles=c(0.25,0.5,0.75))
4646
save_vtest("quantiles")
4747

4848
dat2 <- data.frame(x = LETTERS[1:3], y = rnorm(90), g = letters[5:6])

0 commit comments

Comments
 (0)