[R] ggplot position_dodge requires constant width

David Arnold dwarnold45 at suddenlink.net
Sun Jul 28 23:41:30 CEST 2013


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.



More information about the R-help mailing list