Learn R Programming

adegraphics (version 1.0-21)

zoom: Zoom in or out

Description

This function performs a zoom on a ADEg.S1 or ADEg.S2 displayed object.

Usage

zoom(object, zoom, center)

Value

Updated display after zoom.

Arguments

object

a ADEg.S1 or ADEg.S2 object

zoom

a numeric value to zoom in (if zoom > 1) or out (if zoom < 1)

center

a numeric value (if object is a ADEg.S1 object) or a two-length vector (if object is a ADEg.S2 object) as a reference point to zoom (in or out). If it is missing, the displayed center point is used.

Author

Alice Julien-Laferriere, Aurelie Siberchicot aurelie.siberchicot@univ-lyon1.fr and Stephane Dray

See Also

ADEg.S2 ADEg.S1

Examples

Run this code
data(olympic, package = "ade4")
dudi1 <- ade4::dudi.pca(olympic$tab, scan = FALSE)
g <- s.corcircle(dudi1$co, lab = names(olympic$tab), fullcircle = TRUE, psub.text = "data:olympic")
zoom(g, 0.5)
zoom(g, 2, center = c(-0.4, 0.8))

Run the code above in your browser using DataLab