gpanel.ellipse: Lattice panel function for data ellipse

Description Usage Arguments Value Examples

View source: R/gpanel_ellipse.R

Description

Draws a data ellipse in panels

Usage

1
gpanel.ellipse(x, y, ..., radius = 1, n = 100, type)

Arguments

x
y
...

Value

called for its side effects of plotting

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
library(spida)
library(lattice)
library(latticeExtra)
# No groups or panels:
xyplot(mathach ~ ses, hs) + layer(gpanel.ellipse(...))
# Panels:
xyplot(mathach ~ ses | school, hs) + layer(gpanel.ellipse(...))
# Groups:
xyplot(mathach ~ ses, hs, groups = Sex) + glayer(gpanel.ellipse(...))
# Panels with groups:
xyplot(mathach ~ ses | school, hs, groups = Sex) + glayer(gpanel.ellipse(...))

## End(Not run)

gmonette/spida documentation built on May 17, 2019, 7:25 a.m.