plot <- Experiment1 %>%
ggplot(aes(x = factor(Test), y = AbsoluteError )) +
scale_y_continuous(breaks = seq(0,.8, by =.1)) +
xlab("Test Type") +
ylab("Absolute Error") +
ggtitle("Absolute Error Distribution", subtitle = "By Test Type") +
theme(plot.title = element_text(hjust = 0.5),
plot.subtitle = element_text(hjust = 0.5))
I'm plotting a graph that shows absolute error distribution by test type (mult choice, fill ins, etc).
I want to create a value in this that takes the mean of AbsoluteError and if it is greater than the mean Absolute Error, you color it blue and if it is less, you color it red. Can anyone assist me? I've tried multiple mutates but get Error: data
must be a data frame, or other object coercible by fortify()
, not an S3 object with class uneval.