Guest User

Untitled

a guest
Mar 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. ggplot(iris, aes(x = Sepal.Width)) +
  2. geom_histogram(binwidth = 0.05) +
  3. geom_boxplot(aes(x = 3, y = Sepal.Width))
  4.  
  5. a <- ggplot(iris, aes(x = Sepal.Width)) +
  6. geom_histogram(binwidth = 0.05)
  7.  
  8. b <- ggplot(iris, aes(x = "", y = Sepal.Width)) +
  9. geom_boxplot() +
  10. coord_flip()
  11.  
  12. grid.arrange(a,b,nrow=2)
Add Comment
Please, Sign In to add comment