Ответ 1
Что насчет
ggplot.3plus + theme(axis.text.x=element_text(colour="red"))
Подробнее см. страницу wiki ggplot2.
Вот соответствующий код:
ggplot.3plus<-ggplot(summary.3plus, aes(x=sp1, y=fract.mean, fill=ForestAge)) +
geom_bar(position=position_dodge())+ coord_cartesian(ylim = c(1, 1.175))+
geom_errorbar(aes(ymin=fract.mean-se, ymax=fract.mean+se),
width=.2, # Width of the error bars
position=position_dodge(.9))
ggplot.3plus<- ggplot.3plus + theme(axis.title.x = element_text(colour = "red"))
Вы можете видеть, что с последней строкой кода я могу изменить цвет названия оси, но не цвет оси LABELS.
Что насчет
ggplot.3plus + theme(axis.text.x=element_text(colour="red"))
Подробнее см. страницу wiki ggplot2.