I am using scale_fill_manual and the legend is only producing 1 of my treatments. I think I am missing a line of code but not sure. Please help or point me in the direction of an answer.
ggplot(Cg1, aes(fill=ST, y=OC, x=CT)) +
geom_blank() + theme_bw() +
theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank()) +
geom_bar(position="dodge", stat="identity", colour="black", size=.3) +
geom_errorbar(aes(ymin=OC-SE, ymax=OC+SE), width=.1, size=.1, # Width of the error bars
position=position_dodge(.9)) +
scale_fill_manual(values = c("#999999","#FFFFFF","#666666","#CCCCCC","#999999","#FFFFFF","#666666","#999999","#FFFFFF"), name="",
breaks=c("Sandy Loam", "Silt Laom", "Loam", "Loamy Sand", "Sandy Laom", "Silt Loam", "Loam", "Sandy Loam", "Silt Loam")) +
xlab("Crop Type") + ylab("SOC (%)") + ggtitle("") + expand_limits(y=c(NA, 3.25))