directlabels - densityplot - example - chemscore

data(Chem97,package="mlmRev")
library(lattice)
p <- densityplot(~gcsescore|gender,Chem97,
            groups=factor(score),layout=c(1,2),
            n=500,plot.points=FALSE)
top.bumptwice

Label the tops, bump labels up to avoid other labels, then to the side to avoid collisions with points.

direct.label(p,"top.bumptwice")
  
top.bumpup

Label the tops, but bump labels up to avoid collisions.

direct.label(p,"top.bumpup")
  
top.points

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 2014.1.27 (svn revision 675) using inlinedocs.
validate