Learn R Programming

icesTAF (version 2.3-0)

zoom: Zoom

Description

Change text size in a lattice plot.

Usage

zoom(obj, cex = 1.8, cex.main = 1.3 * cex, cex.lab = 1.1 * cex,
  cex.axis = cex, cex.strip = cex, cex.symbol = cex, cex.sub = 0.7
  * cex, cex.legend = 0.7 * cex)

Arguments

obj

a lattice plot of class "trellis".

cex

text size multiplier.

cex.main

size of main title (default is 1.3 * cex).

cex.lab

size of axis labels (default is 1.1 * cex).

cex.axis

size of tick labels (default is cex).

cex.strip

size of strip labels (default is cex).

cex.symbol

size of text inside plot (default is cex).

cex.sub

size of subtitle (default is 0.7 * cex).

cex.legend

size of legend labels (default is 0.7 * cex).

Value

The same lattice object, but with altered text size.

See Also

Lattice plots are created using xyplot or related functions.

taf.png opens a PNG graphics device.

icesTAF-package gives an overview of the package.

Examples

Run this code
# NOT RUN {
library(lattice)

xyplot(1~1)
zoom(xyplot(1~1))
zoom(xyplot(1~1), cex=1)

# }
# NOT RUN {
taf.png("myplot")
plot(1)
dev.off()

taf.png("mytrellis")
zoom(xyplot(1~1))
dev.off()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab