Created
August 24, 2018 18:54
-
-
Save aurielfournier/d1367666e0aa0693369b6376eeac11ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
dat <- data.frame(group = c("a","a","b","b","c",'c'), | |
rate = c(65, 35, 80, 20, 40, 60), | |
pf = c("p","f","p","f","p","f")) | |
ggplot(data=dat, | |
aes(x=group, y=rate, fill=pf))+ | |
geom_bar(stat="identity") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment