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] doubt in generating loops with For

2015-04-16 Thread Vít Syrovátka
Hi Thiago, I am not familiar with the diversity measure you are trying to calculate and your example code is not complete - one can not simulate your comm and dist objects. But at the first sight one can see that in your loop you are trying to select columns 1, 2, 3,... 1000 from the comm

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