When I use geom_points to overlay the observations over box plots, I often get the following message:
Warning message:
Removed 13 rows containing missing values (geom_point).
I am interested in seeing the observations over time so the fact that some points are not being plotted is bothersome.
Is there any way I can fix this? Below is the code and the output.
# Rld ggplot code
win.graph(height=8.5, width=11)
p1 <- ggplot(Rld77, aes(HOUR, SCORE))
p1 <- p1 + stat_summary(fun.data = box.stats, geom = "boxplot") + ylim(-0.25,4) +
geom_jitter(position=position_jitter(width=0.40, height=0.10), size=2) +
ggtitle("Adhesion Scores by Measurement Event") + xlab("Hour") + ylab("Score")
p1 + annotate("segment",x=5.55,xend=6.45,y=3.78,yend=3.78, size=1.5,lty=1,colour=cbPalette[2]) +
annotate("segment",x=4.55,xend=5.45,y=3.77,yend=3.77, size=1.5,lty=1,colour=cbPalette[2]) +
annotate("segment",x=3.55,xend=4.45,y=3.23,yend=3.23, size=1.5,lty=1,colour=cbPalette[2]) +
annotate("segment",x=2.55,xend=3.45,y=2.29,yend=2.29, size=1.5,lty=1,colour=cbPalette[2]) +
annotate("segment",x=1.55,xend=2.45,y=1.02,yend=1.02, size=1.5,lty=1,colour=cbPalette[2]) +
annotate("segment",x=0.55,xend=1.45,y=0.05,yend=0.05, size=1.5,lty=1,colour=cbPalette[2]) +
annotate("point",x="72",y=3.78,size=3,colour=cbPalette[2]) +
annotate("point",x="60",y=3.77,size=3,colour=cbPalette[2]) +
annotate("point",x="48",y=3.23,size=3,colour=cbPalette[2]) +
annotate("point",x="36",y=2.29,size=3,colour=cbPalette[2]) +
annotate("point",x="24",y=1.02,size=3,colour=cbPalette[2]) +
annotate("point",x="12",y=0.05,size=3,colour=cbPalette[2])
Vicki Ann Lancaster, Ph.D. | Mathematical Statistician
FDA | Center for Drug Evaluation and Research | Office of Translational Sciences | Office of Biostatistics | DBVIII
10903 New Hampshire Avenue, Bldg. 21, Room 4646, Silver Springs, MD 20852
Phone: 240.402.3872
To know one's ignorance is the best part of knowledge.
Lao Tzu, The Tao, no. 71
--
--
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/d/optout.
ylim(-0.25,4)
coord_cartesian(ylim = c(-0.25, 4))