Using GGplot2 to create the following plot
plot1 <- ggplot(data=emodata, aes(x=trueSNR, y=score, colour=factor(Task)))
plot1 + stat_smooth(method="lm")+ facet_grid(. ~ Condition_f)
I'm trying to change the default axes names (y = "score" to be "proportion correct", x="trueSNR" to be "dB SNR"). By default they get the variable name in the dataframe. This seems like something that should be really easy, but I can't find a question here that answers it (most seem like they discuss re-labelling the axis, which seems problematic when using facet_grid). The primary issue is trying to edit axis labels from within the facet_grid arguments.
Anyway, I know this may be trivial, but I'd appreciate any help!