Change both legend titles in a ggplot with two legends?

Here is an example using the iris dataset: data(iris) ggplot(iris, aes(x=Sepal. Length, y=Sepal. Width)) + geom_point(aes(shape=Species, colour=Petal.

Width)) + scale_colour_gradient() + labs(shape="Species label", colour="Petal width label") You specify the labels using labs(), with each scale separately specified, i.e. Labs(shape="Species label", colour="Petal width label").

1 You can specify the labs in via scale() too ggplot(iris, aes(x=Sepal. Length, y=Sepal. Width)) + geom_point(aes(shape=Species, colour=Petal.

Width)) + scale_colour_gradient("Petal width label") + scale_shape("Species label") – Thierry Aug 2 at 11:45 Thank you, Its working. I have a further question: I have many entrys in code (see my example), so in the plot there are many colors. Now, for example I want color only "approach z" black, and leave the other unchanged (they are colored automatically).

For this, the following code doesn´t work: + scale_colour_manual(values = c("approach z" = "black")) – pmuench Aug 2 at 11:52 @pmuench Have a look at the examples in the documentation for scale_manual at had.co. Nz/ggplot2/scale_manual. Html – Andrie Aug 2 at 11:59 @Andrie I have, but they replace all of the colors.

I want only replace one and leave the other (automatic colored) unchanged. – pmuench Aug 2 at 12:10 1 That question has been asked before: stackoverflow. Com/questions/6075140/… – Andrie Aug 2 at 12:42.

If I understood your point correctly, you can simply use + labs(shape = "shape legend title", colour = "colour legend title").

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions