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 would
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 wrote:
> Dear R experts,
>
> I am trying to make a new plot. I have al
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
http://www.cook
Sure!
I can provide a sample graph
I want to get the axis values to be black and remove the legend with the
name "factor(Sp)" and get the values for the axis to be black!
Thanks!
This is the code
t<-read.table ("covartimesfinal2.txt", header=T)
attach(t)
p <- ggplot(t,aes(x=Ratio,y=Time)) + g
Why don't you just adapt it in the dataframe and make sure the levels in
the Sp column are renamed to "Sp1" and "Sp2"?
http://www.cookbook-r.com/Manipulating_data/Renaming_levels_of_a_factor/
grs,
Stijn
On 04/16/2015 11:26 AM, Roman Luštrik wrote:
Can you provide a reproducible example (using