SHARE
TWEET

Untitled

a guest Mar 19th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require(ggplot2)
  2. 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'))
  3. ggplot(d, aes(x, y, group=grp)) + geom_line()
  4. ggplot(d, aes(x, y, group=grp)) + geom_line() + scale_y_continuous(limits=c(0,7))
  5. ggplot(d, aes(x, y, group=grp)) + geom_line() + ylim(0,7)
  6.      
  7. ggplot(d, aes(x, y, group=grp)) + geom_line() +
  8.     coord_cartesian(ylim=c(0, 7))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top