Re: [R] ggplot problem

2017-05-24 Thread Thierry Onkelinx
Dear Greg, Make sure that your x variable (Betas) is categorical. That is required for geom_boxplot(). And please do read the posting guide. Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg /

[R] ggplot problem

2017-05-23 Thread greg holly
Hi all; When I run the following program substantially I have "Warning message: position_dodge requires non-overlapping x intervals" How I can overcome this problem. Regards, Greg p <- ggplot() + geom_point(data=a, aes(x=Betas, y=Traits, color= Super.Pathway), shape=15, size=4) p <- p +

[R] ggplot: Problem with legend background

2009-12-11 Thread MUHC_Research
Dear R-users, I am preparing graphs for an upcoming article using the different functions of the ggplot2 package and I've been having problems with the legend background. It doesn't seem to scale when the text size is increased. Here's the mandatory reproducible example: library(ggplot2)

Re: [R] ggplot: Problem with legend background

2009-12-11 Thread hadley wickham
Hi Luc, You want: legend.title=theme_text(size=20, hjust = 0) So the legend title is left aligned, not centred. Hadley On Fri, Dec 11, 2009 at 9:26 AM, MUHC_Research villa...@dms.umontreal.ca wrote: Dear R-users, I am preparing graphs for an upcoming article using the different functions

[R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread Ian Fiske
Hi all, I am using ggplot2 and continuing to find it very useful and pretty. However, I am trying to create some graphics for publication that would be included in an MS Word document (not my choice!) in Windows Vista. The problem is that I want to use stat_smooth() to add an fitted linear

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread hadley wickham
On Wed, Feb 4, 2009 at 9:12 AM, Ian Fiske ianfi...@gmail.com wrote: Hi all, I am using ggplot2 and continuing to find it very useful and pretty. However, I am trying to create some graphics for publication that would be included in an MS Word document (not my choice!) in Windows Vista. The

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread Felipe Carrillo
Ian: It would work if you copy it as a bitmap. Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish Wildlife Service California, USA --- On Wed, 2/4/09, Ian Fiske ianfi...@gmail.com wrote: From: Ian Fiske ianfi...@gmail.com Subject: [R] ggplot

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread Etienne Bellemare Racine
Maybe you could try to open the pdf in Inkscape http://www.inkscape.org/ and export it as a .emf or .png ? Etienne Ian Fiske a écrit : Hi all, I am using ggplot2 and continuing to find it very useful and pretty. However, I am trying to create some graphics for publication that would be

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread Etienne B. Racine
Maybe you could try to open the pdf in Inkscape http://www.inkscape.org/ and export it as a .emf or .png ? Etienne Ian Fiske wrote: Hi all, I am using ggplot2 and continuing to find it very useful and pretty. However, I am trying to create some graphics for publication that would be

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread Ian Fiske
Thanks for the suggestion, Hadley. I tried: stat_smooth(fill=alpha(grey,1)) and got the same problem. The shaded band shows up in the graphics windows, but the only file format the keeps the confidence band is PDF. Am I doing this correctly? -ian On Wed, Feb 4, 2009 at 11:07 AM, hadley

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread hadley wickham
On Wed, Feb 4, 2009 at 10:55 AM, Ian Fiske ianfi...@gmail.com wrote: Thanks for the suggestion, Hadley. I tried: stat_smooth(fill=alpha(grey,1)) and got the same problem. The shaded band shows up in the graphics windows, but the only file format the keeps the confidence band is PDF. Am

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread Ian Fiske
Thanks. That fixed it. But I should've been careful about what I asked for. Now the graphs are basically unusable without transparency because the bands overlap so much. I'm still looking for a way to get transparency into Word without resorting to raster graphics. On Wed, Feb 4, 2009 at

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread Ian Fiske
Thanks for the suggestion, Etienne. It looks like this might be the best approach after all, using a high resolution png exported from Inkscape. I'm impressed by its flawless pdf import! -ian On Wed, Feb 4, 2009 at 11:15 AM, Etienne Bellemare Racine etienn...@gmail.com wrote: Maybe you