Re: [R-sig-eco] Change ggplot legend

2015-04-16 Thread Roman Luštrik
Can you provide a reproducible example (using some available dataset or simulate some data) and perhaps mark on the picture what you want to have changed? Cheers, Roman On Thu, Apr 16, 2015 at 11:11 AM, Luis Fernando García luysgar...@gmail.com wrote: Dear R experts, I am trying to make a

Re: [R-sig-eco] Change ggplot legend

2015-04-16 Thread Roman Luštrik
To change the axis text color, use theme(). Compare library(ggplot2) ggplot(PlantGrowth, aes(x=group, y=weight)) + geom_boxplot() to ggplot(PlantGrowth, aes(x=group, y=weight)) + geom_boxplot() + theme(axis.text = element_text(color = black)) To change legend title, see

[R-sig-eco] Change ggplot legend

2015-04-16 Thread Luis Fernando García
Dear R experts, I am trying to make a new plot. I have already finished and I just want to change the color for the axis number and the legends, I have tried to make the last function by removing the legend and adding a new one but it did not work. If any of you knows how to correct this, I