I'm trying to make one plot of two datasets to compare their values.
ggplot()
ggplot(pos_plot, aes(x=WORD, y=FREQ)) +
geom_bar(position="dodge", colour="blue", stat = "identity") +
ggplot(neg_plot, aes(x=WORD, y=FREQ)) +
geom_bar(position="dodge", colour="red", stat = "identity")
But when I run this code I get the error:
Error: Don't know how to add o to a plot
Does anyone know what I'm doing wrong?