Skip to content
Prev 167069 / 398502 Next

Bar Plot ggplot2 Filling bars with cross hatching

#I am putting a test together for an introductory biology class and I
would like to put different cross hatching inside of each bar for the
bar plot below

color <- c("Brightly Colored", "Dull", "Neither")
lizards <- c(277, 70, 3)
liz.col <- data.frame(color, lizards)
qplot(color, lizards, data=liz.col, geom="bar", ylab="Observed
Matings", main="Counts Out of 350 Aquariums", ylim=c(0,400),
fill=color)+scale_y_continuous(breaks=c(0, 70, 277, 350))


Thanks