display_xy: Display tour path with a scatterplot...

Description Usage Arguments Details Examples

Description

Display tour path with a scatterplot

Usage

1
display_xy(center=TRUE, axes="center", limit, col="black", pch=20, ...)

Arguments

axes

position of the axes: center, bottomleft or off

center

if TRUE, centers projected data to (0,0). This pins the center of data cloud and make it easier to focus on the changing shape rather than position.

limit

limits of the projected data. Defaults to 3 * square root of the largest eigenvalue.

col

color to be plotted. Defaults to "black"

pch

size of the point to be plotted. Defaults to 20.

...

other arguments passed on to animate and display_xy

Details

Animate a 2D tour path with a scatterplot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
animate_xy(flea[, 1:6])
animate(flea[, 1:6], grand_tour(), display_xy())
animate(flea[, 1:6], grand_tour(), display_xy(axes = "bottomleft"))
animate(flea[, 1:6], grand_tour(), display_xy(limits = c(-3, 3)))
animate_xy(flea[, 1:6], little_tour())
animate_xy(flea[, 1:3], guided_tour(holes), sphere = TRUE)
animate_xy(flea[, 1:6], center = FALSE)

# The default axes are centered, like a biplot, but there are other options
animate_xy(flea[, 1:6], axes = "bottomleft")
animate_xy(flea[, 1:6], axes = "off")
animate_xy(flea[, 1:6], dependence_tour(c(1, 2, 1, 2, 1, 2)),
axes = "bottomleft")

tourr documentation built on May 2, 2019, 5:28 p.m.

Related to display_xy in tourr...