forked from tidyverse/ggplot2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscale-breaks.r
23 lines (15 loc) · 863 Bytes
/
scale-breaks.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
vcontext("scale-breaks")
dat <- data.frame(x = 1:3, y = 1:3)
ggplot(dat, aes(x = x, y = y)) + geom_point() + scale_x_continuous(breaks = NULL)
save_vtest("no x breaks")
ggplot(dat, aes(x = x, y = y)) + geom_point() + scale_y_continuous(breaks = NULL)
save_vtest("no y breaks")
ggplot(dat, aes(x = 1, y = y, alpha = x)) + geom_point() + scale_alpha_continuous(breaks = NULL)
save_vtest("no alpha breaks (no legend)")
ggplot(dat, aes(x = 1, y = y, size = x)) + geom_point() + scale_size_continuous(breaks = NULL)
save_vtest("no size breaks (no legend)")
ggplot(dat, aes(x = 1, y = y, fill = x)) + geom_point(shape = 21) + scale_fill_continuous(breaks = NULL)
save_vtest("no fill breaks (no legend)")
ggplot(dat, aes(x = 1, y = y, colour = x)) + geom_point() + scale_colour_continuous(breaks = NULL)
save_vtest("no colour breaks (no legend)")
end_vcontext()