top.points {latticedl}R Documentation

top points

Description

Positioning Function for the mode of a density estimate.

Usage

top.points(d, ...)

Arguments

d
...

Author(s)

Toby Dylan Hocking <toby.hocking@inria.fr>

Examples

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(latticedl)
print(dl(densityplot,loci,~ppp,type,n=500))
## Not very informative but it should work:
print(dl(densityplot,loci,~ppp|type,type,n=500))

[Package latticedl version 1.0 Index]