Learn R Programming

⚠️There's a newer version (0.3.10) of this package.Take me there.

spinifex

Scope

Tours are a class of dynamic linear projection techniques that extend the viewing (of data-space) for numeric multivariate data as the dimensionality increases.

Description

Function that generate the path for manual tours. Tours are generally available in the tourr package. The grand tour is an algorithm that shows all possible projections given sufficient time. Guided uses projection pursuit to steer the tour towards interesting projections. The spinifex package implements manual control, where the contribution of a selected variable can be adjusted between -1 to 1, to examine the sensitivity of structure in the data to that variable. The result is an animation where the variable is toured into and out of the projection completely, which can be rendered using the 'gganimate' and 'plotly' packages.

Installation

You can install naniar from CRAN:

install.packages("spinifex")

Or you can install the development version on github using remotes:

remotes::install_github("nspyrison/spinifex")

bug reports/requests

Please submit all bug reports, errors, and feature requests to https://github.com/nspyrison/spinifex/issues

Copy Link

Version

Install

install.packages('spinifex')

Monthly Downloads

302

Version

0.1.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Nicholas Spyrison

Last Published

April 9th, 2019

Functions in spinifex (0.1.0)

pch_of

Return pch values for a given categorical variable
array2df

Turns a tour path array into a long data frame (/tibble)
view_basis

Plot projection frame and return the axes table.
breastcancer

Wisconsin Breast Cancer Database
view_manip_space

Plot projection frame and return the axes table.
render_gganimate

Render the slides as a gganimate animation
render_plotly

Render the slides as a plotly animation
rotate_manip_space

Rotate and return the manipulation space
weather

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

Render display of a manual tour
wine

The wine dataset from the UCI Machine Learning Repository.
col_of

Return col values for a given categorical variable
create_manip_space

Create a manipulation space
set_axes_position

Returns the axis scale and position
play_tour_path

Render display of a provided tour path
spinifex

spinifex
render_

Render the ggplot before the animation package
manual_tour

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