Customizing legend text and colors in ggplot2?

One way to get what you want would be to include the data for your horizontal black line in the original data frame. You example isn't exactly reproducible, so this may not be exactly the code you want, but this is the general idea.

One way to get what you want would be to include the data for your horizontal black line in the original data frame. You example isn't exactly reproducible, so this may not be exactly the code you want, but this is the general idea: Add rows to 'data', one for each level of 'Month', where the value of 'avgLoss' in each row is equal to 'meanplus2sd'. You'll probably want all the other columns to contain NAs.So, newData.

Not a bad work around, except I'll end up with points in addition to the line. I also thought about having the line plotted prior to the geom_point which should then make the horizontal line have the first color in the array...then it's just about changing the color array for this function. I was/am hoping there is an explicit way to do this that isn't a work-around, though.

– Marver May 18 at 21:11 1 No necessarily, I think, if you pass the appropriate subsets of your data to geom_point and geom_line. Pass all the data to geom_line, but omit the horizontal line data in geom_point. – joran May 18 at 21:44.

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