loci <- data.frame(ppp=c(rbeta(800,10,10),rbeta(100,0.15,1),rbeta(100,1,0.15)), type=factor(c(rep("NEU",800),rep("POS",100),rep("BAL",100)))) library(ggplot2) p <- qplot(ppp,data=loci,colour=type,geom="density")
Label the tops, bump labels up to avoid other labels, then to the side to avoid collisions with points. direct.label(p,"top.bumptwice") |
|
Label the tops, but bump labels up to avoid collisions. direct.label(p,"top.bumpup") |
|
Positioning Method for the top of a group of points. direct.label(p,"top.points") |
Please contact Toby Dylan Hocking if you are using directlabels or have ideas to contribute, thanks! |
Documentation website generated from source code version 2021.2.24 (git revision bb6db07 Mon, 14 Jun 2021 22:38:45 +0530) using inlinedocs. |
validate |