The reason you see the exra markers is that the first part of the command
"qplot(DT$N,DT$D,fill=factor(DT$C))" already plots the individual points.
You didn't see it with "geom_bar(stat = "identity")" simply because the
stacked bars made the previous layer invisible. To see this you can use the
ggplot function to reproduce your graph (with the points):

p<-ggplot(data=DT,aes(x=N,y=D))+geom_point()+geom_bar(stat="identity",aes(fill=factor(C)),position="dodge")

print(p)

It then becomes obvious that once you omit the geom_point(), the points are
gone. 

This is IMO a feature of the ggplot2 system, not necessarily a bug.


-- 
View this message in context: 
http://r.789695.n4.nabble.com/ggplot2-barplot-extra-markers-in-graph-tp2313337p2313426.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.

Reply via email to