spinifex0.3.7.0 package

Manual Tours, Manual Control of Dynamic Projections of Numeric Multivariate Data

animate_gganimate

Animate a ggtour as a .gif via {gganimate}

animate_plotly

Animate a ggtour as and HTML widget via {plotly}

append_fixed_y

Append a fixed vertical height

array2df

Turns a tour path array into a long data frame.

basis_guided

Solve for the last basis of a guided tour.

basis_half_circle

Create a basis that gives uniform contribution in a circle

basis_odp

The basis of Orthogonal Discriminant Projection (ODP)

basis_olda

The basis of Orthogonal Linear Discriminant Analysis (OLDA)

basis_onpp

The basis of Orthogonal Neighborhood Preserving Projection (OLPP)

basis_pca

The basis of Principal Component Analysis (PCA)

create_manip_space

Create a manipulation space to rotate the manipulation variable in.

devMessage

Development message

dot-bind_elements2df

Binds replicated elements of a list as columns of a data frame.

dot-init4proto

Initialize common obj from .global ggtour() objects & test their exi...

dot-lapply_rep_len

Replicate all vector elements of a list

draw_basis

Draw a basis on a static ggplot

facet_wrap_tour

Wrap a 1d ribbon of panels into 2d for animation

filmstrip

Create a "filmstrip" of the frames of a ggtour.

ggtour

Prepare a new grammar of graphics tour

interpolate_manual_tour

Interpolates a manual tour

is_any_layer_class

Check ggplot layers for use of a specific geom

is_orthonormal

Orthonormality of a matrix

last_ggtour_env

Retrieve/set last ggtour() information

manip_var_of

Suggest a manipulation variable.

manual_tour

Produce the series of projection bases to rotate a variable into and o...

map_absolute

Manually offset and scale the first 2 columns of a matrix or data.fram...

map_relative

Returns the axis scale and position.

play_manual_tour

Animate a manual tour. superseded

play_tour_path

Animates the provided tour path.

proto_basis

Tour proto for a 2D and 1D basis axes respectively

proto_default

Wrapper function for default 2D/1D tours respectively.

proto_density

Tour proto for data, 1D density, with rug marks

proto_density2d

Tour proto for data, 1D density, with rug marks

proto_frame_cor2

Tour proto for frames square correlation

proto_hex

Tour proto for data, hexagonal heatmap

proto_highlight

Tour proto highlighing specified points

proto_hline0

Tour proto adding a vertical/horizontal line

proto_origin

Tour proto for data origin zero mark

proto_point

Tour proto for data point

proto_text

Tour proto for data, text labels

render_

Prepare the ggplot object before passing to either animation package.

render_gganimate

Render the frames as a gganimate animation.

render_plotly

Animation the frames as a HTML widget.

rotate_manip_space

Performs a rotation on the manipulation space of the given manip var.

run_app

Runs a shiny app demonstrating manual tours

save_history

Save a tour basis array.

scale_colour_discrete

Set default color & fill for discrete variables

scale_sd

Preprocess numeric variables

spinifex-deprecated

Deprecated functions in package spinifex.

spinifex

spinifex

theme_spinifex

Theme spinifex

view_frame

Plot a single frame of a manual tour.

view_manip_space

Plot 2D projection frame and return the axes table.

weather

Sample dataset of daily weather observations from Canberra airport in ...

Data visualization tours animates linear projection of multivariate data as its basis (ie. orientation) changes. The 'spinifex' packages generates paths for manual tours by manipulating the contribution of a single variable at a time Cook & Buja (1997) <doi:10.1080/10618600.1997.10474754>. Other types of tours, such as grand (random walk) and guided (optimizing some objective function) are available in the 'tourr' package Wickham et al. <doi:10.18637/jss.v040.i02>. 'spinifex' builds on 'tourr' and can render tours with 'gganimate' and 'plotly' graphics, and allows for exporting as an .html widget and as an .gif, respectively. This work is fully discussed in Spyrison & Cook (2020) <doi:10.32614/RJ-2020-027>.

  • Maintainer: Nicholas Spyrison
  • License: MIT + file LICENSE
  • Last published: 2024-01-29