Last active
February 14, 2018 05:27
-
-
Save cecilialee/0622d1ea2c33ca1f948707f92b27c2d3 to your computer and use it in GitHub Desktop.
Scale x continuous in ggplot. #r #tidyverse #ggplot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
mtcars %>% | |
ggplot() + | |
geom_point(aes(x = gear, y = wt)) + | |
scale_x_continuous(labels = round, breaks = 3:5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment