Learn R Programming

moveEZ (version 1.0.3)

moveplot: Move plot

Description

Create animated biplot on samples in a biplot

Usage

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

Value

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

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

Examples

Run this code
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)}# }

Run the code above in your browser using DataLab