Re: [R] colour input in geom line ggplote2

2015-12-23 Thread Jeff Newmiller
There is a problem built into your question: you are treating carb graphically as a continuous variable, yet by asking for a line plot of mean values you seem to be assuming it is discrete. Below are several possible interpretations of your intent. Continuous: library(ggplot2) p <- ggplot( mt

Re: [R] Colour input in geom line

2015-12-23 Thread John Kane
.com > Sent: Wed, 23 Dec 2015 10:18:54 +0530 > To: r-help@r-project.org > Subject: [R] Colour input in geom line > > Thanks for the help in my previous quarry, I want to know is it possible > to change the colour in geom line? > [[

[R] colour input in geom line ggplote2

2015-12-22 Thread pushan chakraborty
Dear list I want to put a line command in the following and also want to attribute colour in the geom line command line. It would be a ribbon plot showing the mean line. Is there any help? p <- ggplot(mtcars, aes(x=carb, y=mpg)) + geom_point() p + stat_summary(geom="ribbon", fun.ymin="min", fun

Re: [R] Colour input in geom line

2015-12-22 Thread Jeff Newmiller
Yes. This forum works best when you provide example code. For questions like this you really should use a web search engine. Google comes up with many results, including [1]. [1] http://www.ucl.ac.uk/~zctpep9/Archived%20webpages/Cookbook%20for%20R%20%C2%BB%20Colors%20(ggplot2).htm -- Sent f

[R] Colour input in geom line

2015-12-22 Thread pushan chakraborty
Thanks for the help in my previous quarry, I want to know is it possible to change the colour in geom line? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/li