Skip to contents

Create animated biplot on samples in a biplot

Usage

moveplot(bp, time.var, group.var, move = TRUE, hulls = TRUE, scale.var = 5)

Arguments

bp

biplot object from biplotEZ

time.var

time variable

group.var

group variable

move

whether to animate (TRUE) or facet (FALSE) samples, according to time.var

hulls

whether to display sample points or convex hulls

scale.var

scaling the vectors representing the variables

Value

An animated or a facet of biplots based on the fixed variable frame.

Examples

data(Africa_climate)
bp <- biplotEZ::biplot(Africa_climate, scaled = TRUE) |> biplotEZ::PCA()
bp |> moveplot(time.var = "Year", group.var = "Region", hulls = TRUE, move = FALSE)

bp |> moveplot(time.var = "Year", group.var = "Region", hulls = FALSE, move = FALSE)

# \donttest{
if(interactive()) {
bp |> moveplot(time.var = "Year", group.var = "Region", hulls = TRUE, move = TRUE)}# }