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
.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?
> [[
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
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
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
5 matches
Mail list logo