Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require(ggplot2)
- d = data.frame(x=c(1,4,7,2,9,7), y=c(2,5,4,10,5,3), grp=c('a','a','b','b','c','c'))
- ggplot(d, aes(x, y, group=grp)) + geom_line()
- ggplot(d, aes(x, y, group=grp)) + geom_line() + scale_y_continuous(limits=c(0,7))
- ggplot(d, aes(x, y, group=grp)) + geom_line() + ylim(0,7)
- ggplot(d, aes(x, y, group=grp)) + geom_line() +
- coord_cartesian(ylim=c(0, 7))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement