Re: geom_smooth who to disable grey background

12,858 views
Skip to first unread message

smu

unread,
May 13, 2013, 9:09:00 AM5/13/13
to Peter Steter, ggp...@googlegroups.com
for example by unmapping the fill colour:

... + geom_smooth(fill=NA)


cheers,
stefan

On Mon, May 13, 2013 at 04:45:04AM -0700, Peter Steter wrote:
> Hi guys. first of all: Thanks for this great plotting tool! i really love
> it!!!!
>
> So secondly I would like to know if anybody knows how to remove the grey
> background line when drawing a line with geom_smooth. I'm not sure what
> this background line is ment to be (some kind of standard deviation maybe?)
> but I would prefer my plots without this....
>
> --
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
> ---
> You received this message because you are subscribed to the Google Groups "ggplot2" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

adam.l...@pnc.com

unread,
May 13, 2013, 10:01:33 AM5/13/13
to Peter Steter, ggp...@googlegroups.com
Hi Peter,

The shaded region you want to get rid of is a confidence interval. To do so,

...+ geom_smooth(se=FALSE)


Check ?stat_smooth for more details...



Adam Loveland




From: Peter Steter <mecker...@gmail.com>
To: ggp...@googlegroups.com
Date: 05/13/2013 09:04 AM
Subject: geom_smooth  who to disable grey background
Sent by: ggp...@googlegroups.com





Hi guys. first of all: Thanks for this great plotting tool! i really love it!!!!

So secondly I would like to know if anybody knows how to remove the grey background line when drawing a line with geom_smooth. I'm not sure what this background line is ment to be (some kind of standard deviation maybe?) but I would prefer my plots without this....

--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example:
https://github.com/hadley/devtools/wiki/Reproducibility

To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options:
http://groups.google.com/group/ggplot2

---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit
https://groups.google.com/groups/opt_out.


The contents of this email are the property of PNC. If it was not addressed to you, you have no legal right to read it. If you think you received it in error, please notify the sender. Do not forward or copy without permission of the sender. This message may contain an advertisement of a product or service and thus may constitute a commercial electronic mail message under US Law. The postal address for PNC is 249 Fifth Avenue, Pittsburgh, PA 15222. If you do not wish to receive any additional advertising or promotional messages from PNC at this e-mail address, click here to unsubscribe. https://pnc.p.delivery.net/m/u/pnc/uni/p.asp
By unsubscribing to this message, you will be unsubscribed from all advertising or promotional messages from PNC. Removing your e-mail address from this mailing list will not affect your subscription to alerts, e-newsletters or account servicing e-mails.


Peter Steter

unread,
May 13, 2013, 10:15:24 AM5/13/13
to ggp...@googlegroups.com
Thank you all for your replies on how to remove the shaded background!! works perfectly!
Reply all
Reply to author
Forward
0 new messages