Last data update: 2014.03.03

R: Three-factor generalization of latticeExtra::useOuterStrips
useOuterStripsT2L1R Documentation

Three-factor generalization of latticeExtra::useOuterStrips

Description

Three-factor generalization of latticeExtra::useOuterStrips

Usage

useOuterStripsT2L1(x, ..., strip.height=.4, strip.names=c(TRUE, TRUE))

Arguments

x

A lattice object with dim(x)==3.

...

Additional arguments to be forwarded to the strip.default function.

strip.height

Height of each the strip for each factor. The number of factors in the top and left strips may not be the same. This argument is multiplied by the number of factors in each location and sent on to the lattice par.settings argument for the layout.widths$strip.left and layout.heights$strip components.

strip.names

See strip.default.

Value

A trellis object with two factors in the top strip and 1 factor in the strip.left.

Author(s)

Richard M. Heiberger <rmh@temple.edu>

Examples

tmp <- data.frame(A=rep(factor(letters[1:2]), each=12),
                  B=rep(factor(letters[3:5]), each=4, times=2),
                  C=rep(factor(letters[6:9]), times=6),
                  x=1:24,
                  y=1:24)

F <- xyplot(y ~ x | B*A*C, data=tmp,
            panel=function(x, y, labels, ...) {
              panel.text(x, y, matrix(1:24, 6, 4, byrow=TRUE)[panel.number()], ...)
            },
            layout=c(6, 4), between=list(x=c(.5, .5, 1.5), y=1))
F

useOuterStripsT2L1(F)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(HH)
Loading required package: lattice
Loading required package: grid
Loading required package: latticeExtra
Loading required package: RColorBrewer
Loading required package: multcomp
Loading required package: mvtnorm
Loading required package: survival
Loading required package: TH.data
Loading required package: MASS

Attaching package: 'TH.data'

The following object is masked from 'package:MASS':

    geyser

Loading required package: gridExtra
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/HH/useOuterStripsT2L1.Rd_%03d_medium.png", width=480, height=480)
> ### Name: useOuterStripsT2L1
> ### Title: Three-factor generalization of latticeExtra::useOuterStrips
> ### Aliases: useOuterStripsT2L1
> ### Keywords: dplot
> 
> ### ** Examples
> 
> tmp <- data.frame(A=rep(factor(letters[1:2]), each=12),
+                   B=rep(factor(letters[3:5]), each=4, times=2),
+                   C=rep(factor(letters[6:9]), times=6),
+                   x=1:24,
+                   y=1:24)
> 
> F <- xyplot(y ~ x | B*A*C, data=tmp,
+             panel=function(x, y, labels, ...) {
+               panel.text(x, y, matrix(1:24, 6, 4, byrow=TRUE)[panel.number()], ...)
+             },
+             layout=c(6, 4), between=list(x=c(.5, .5, 1.5), y=1))
> F
> 
> useOuterStripsT2L1(F)
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>