zoom: Zoom in or out

zoomR Documentation

Zoom in or out

Description

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

Usage

zoom(object, zoom, center)

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.

Value

Updated display after zoom.

Author(s)

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

See Also

ADEg.S2 ADEg.S1

Examples

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))

adegraphics documentation built on Oct. 13, 2023, 5:11 p.m.