Animate a 2D tour path with a sage scatterplot that uses a radial transformation on the projected points to re-allocate the volume projected across the 2D plane.
display_sage(
axes = "center",
half_range = NULL,
col = "black",
pch = 20,
gam = 1,
R = NULL,
palette = "Zissou 1",
...
)
animate_sage(data, tour_path = grand_tour(), ...)
position of the axes: center, bottomleft or off
half range to use when calculating limits of projected. If not set, defaults to maximum distance from origin to each row of data.
color to use for points, can be a vector or hexcolors or a factor. Defaults to "black".
marker for points. Defaults to 20.
scaling of the effective dimensionality for rescaling. Defaults to 1.
scale for the radial transformation. If not set, defaults to maximum distance from origin to each row of data.
name of color palette for point colour, used by hcl.colors
, default "Zissou 1"
other arguments passed on to animate
and
display_sage
matrix, or data frame containing numeric columns
tour path generator, defaults to 2d grand tour
# Generate uniform samples in a 10d sphere using the geozoo package
sphere10 <- geozoo::sphere.solid.random(10)$points
# Columns need to be named before launching the tour
colnames(sphere10) <- paste0("x", 1:10)
# Standard grand tour display, points cluster near center
animate_xy(sphere10)
#> Using half_range 1
# Sage display, points are uniformly distributed across the disk
animate_sage(sphere10)
#> Using half_range 1
#> Using half_range 1