daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. > print(df)
  2.   person step start end
  3. 1    sam    A     0   4
  4. 2    sam    B     4   6
  5. 3   greg    A     2   7
  6. 4   greg    B     7  11
  7.    
  8. ggplot(df, aes(colour=step)) +
  9.  geom_segment(aes(x=start, xend=end, y=person, yend=person), size=3) +
  10.   xlab("Duration")
  11.    
  12. step       sam    greg
  13. 1    A        0       2
  14. 2    B        4       7
  15. 3    C        6      11
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
 
Top