panel.dell: Draw data ellipse

Description Usage Arguments Examples

Description

This is an experiment in writing a function that can be called via layer or glayer without further complications e.g. xyplot(......,labels = rownames(data)) + layer(panel.dell(...)) or xyplot(....., labels = rownames(data), subscripts = T) + glayer(panel.dell(...)).

Usage

1
panel.dell(x, y, radius = 1, subscripts, type = "l", ...)

Arguments

x, y

points to generate data ellipse

radius

default 1

...

NOTE: may specify anything you don't want passed through ...

Examples

1
2
3
4
5
6
7
## Not run: 
library(latticeExtra)
xyplot(mathach ~ ses, hs) + layer(panel.dell(..., col='red',lwd=2))
xyplot(mathach ~ ses | school, hs) + layer(panel.dell(...))
xyplot(mathach ~ ses , hs, groups = school) + glayer(panel.dell(...,lwd=2))

## End(Not run)

john-d-fox/gspline documentation built on Sept. 17, 2020, 3:19 a.m.