Guest User

Untitled

a guest
Nov 22nd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. library(ggplot2)
  2.  
  3. count <- c(100,150,112)
  4. cat <- c("A", "B", "C")
  5. sentiment <- c(-0.3, 0.2, 0.8)
  6. duration <- c(5.6, 8.2,5.2)
  7. silence <- c(0.2, 0.05,0.1)
  8.  
  9. df <- data.frame(count, cat, sentiment, duration, silence)
  10.  
  11. p6 <- ggplot(df, aes(x = duration, y = silence, size = count, colour = sentiment)) + geom_point()
  12. p7 <- p6 + scale_size_continuous(range = c(5, 8))
  13. p7 + scale_x_continuous(limits = c(2, 10)) + scale_y_continuous(limits = c(0,0.25)) + theme(legend.position="none")
Add Comment
Please, Sign In to add comment