[R] ggplot position_dodge requires constant width

arun smartpink111 at yahoo.com
Mon Jul 29 00:04:08 CEST 2013


Hi,
This link may help:
http://stackoverflow.com/questions/14476961/why-do-i-get-position-dodge-requires-constant-width-even-though-widths-are-con
A.K.




----- Original Message -----
From: David Arnold <dwarnold45 at suddenlink.net>
To: r-help at r-project.org
Cc: 
Sent: Sunday, July 28, 2013 5:41 PM
Subject: [R] ggplot position_dodge requires constant width

Hi,

library(ggplot2,plyr)
qplot(carat,depth,data=diamonds,
      geom="boxplot",
      group=round_any(carat,0.1,floor),
      xlim=c(0,3))

Typing:

warnings()

Gives me:

Warning messages:
1: position_dodge requires constant width: output may be incorrect

How should the above code be adjusted to avoid this warning? Curious, as
this code is copied directly from ggplot2 Elegant Graphics for Data
Analysis.

D.



--
View this message in context: http://r.789695.n4.nabble.com/ggplot-position-dodge-requires-constant-width-tp4672559.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list