lattice: Lattice plots

Description Generic function Methods Author(s) See Also Examples

Description

Implementation of Trellis graphics in FLR. Plot methods in the lattice package are available for object of class FLQuant, FLQuants or those derive from FLComp.

See the help page in lattice for a full description of each plot method and of all possible arguments.

Plot methods from lattice are called by passing a data.frame obtained by converting the FLR objects using as.data.frame. For details on this transformation, see as.data.frame-FLCore.

Generic function

barchart(x, data, ...)

bwplot(x, data, ...)

densityplot(x, data, ...)

dotplot(x, data, ...)

histogram(x, data, ...)

stripplot(x, data, ...)

xyplot(x, data, ...)

Methods

signature(x=formula, data=FLQuant) :

Use the lattice functionality for objects of class FLQuant

signature(x=formula, data=FLQuants) :

Use the lattice functionality for objects of class FLQuants

signature(x=formula, data=FLComp) :

Use the lattice functionality for objects of class FLComp

signature(x=formula, data=FLPar) :

Use the lattice functionality for objects of class FLPar

Author(s)

The FLR Team

See Also

xyplot, barchart, bwplot, densityplot, dotplot, histogram, stripplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(ple4)
# xyplot on FLQuant
xyplot(data~year|age, catch.n(ple4)[, 1:20])

xyplot(data~year|as.factor(age), catch.n(ple4)[, 1:20], type='b', pch=19, cex=0.5)

# bwplot on FLQuant with iter
flq <- rnorm(100, catch.n(ple4)[, 1:20], catch.n(ple4)[,1:20])
bwplot(data~year|as.factor(age), flq)

# now with same style modifications
bwplot(data~year|as.factor(age), flq, scales=list(relation='free',
  x=list(at=seq(1, 20, by=5), labels=dimnames(catch.n(ple4)[,1:20])$year[seq(1, 20,
  by=5)])), cex=0.5, strip = strip.custom(strip.names = TRUE, strip.levels = TRUE,
  var.name='age'))

FLCore documentation built on May 2, 2019, 5:46 p.m.