library("ggplot2")
r
concentrations <- c(rep("control", 3), rep("0.5" , 3), rep("2.5" , 3), rep("5" , 3), rep("10" , 3), rep("25" , 3), rep("50" , 3) )
replicates <- rep(c("R1" , "R2" , "R3") , 7)
immobilised <- abs(r)
d1 <- data.frame(concentrations, condition, immobilised)
ggplot(d1,
aes(y=immobilised, x=concentrations, fill = replicates)) +
geom_bar(position="dodge", stat="identity")
this gives an error, help please!!