Im trying to create a three way interaction plot but my x axis labels  not according to my independent variable of P treatment which is "0,3,6,12,36".
I have tried to put in the code, levels = c("0","3","6","12","36") but it throws out this....

ggplot(tg2, aes(
         x = factor(interaction(cultivar, P),levels = c("0","3","6","12","36")),
         y = shoot, fill = waterlogg)) + 
  geom_bar(stat="identity", position = "dodge",colour="black",
           size=.1)+
  geom_errorbar(aes(ymin=shoot-se, ymax=shoot+se),
                size=0.3,
                width=.2,            
                position=position_dodge(.9))+
  scale_x_discrete(drop = FALSE)+
  facet_wrap(~cultivar, ncol=2)
 
     
    