Guest User

Untitled

a guest
Feb 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. mean1 <- 0.21
  2. mean2 <- 0,36
  3.  
  4. all <- data.frame(Who = c('Trump', 'Clinton'), Value = c(mean1, mean2))
  5. all
  6.  
  7. all %>% ggplot(aes(x = Who,
  8. y = Value,
  9. fill = Who)) + # here is the trick
  10.  
  11. geom_histogram(stat= 'identity', position = 'dodge') +
  12.  
  13. theme_bw(base_size = 10) +
  14.  
  15. labs(x = "Year", y = "Negative proportion")
Add Comment
Please, Sign In to add comment