Package: spinifex 0.3.7.0

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

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>.

Authors:Nicholas Spyrison [aut, cre], Dianne Cook [aut, ths]

spinifex_0.3.7.0.tar.gz
spinifex_0.3.7.0.zip(r-4.5)spinifex_0.3.7.0.zip(r-4.4)spinifex_0.3.7.0.zip(r-4.3)
spinifex_0.3.7.0.tgz(r-4.4-any)spinifex_0.3.7.0.tgz(r-4.3-any)
spinifex_0.3.7.0.tar.gz(r-4.5-noble)spinifex_0.3.7.0.tar.gz(r-4.4-noble)
spinifex_0.3.7.0.tgz(r-4.4-emscripten)spinifex_0.3.7.0.tgz(r-4.3-emscripten)
spinifex.pdf |spinifex.html
spinifex/json (API)
NEWS

# Install 'spinifex' in R:
install.packages('spinifex', repos = c('https://nspyrison.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/nspyrison/spinifex/issues

Datasets:

On CRAN:

dimensionreductiontoursvisualization

6.65 score 3 stars 1 packages 123 scripts 348 downloads 57 exports 129 dependencies

Last updated 10 months agofrom:7094d2dac3. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 25 2024
R-4.5-winOKOct 25 2024
R-4.5-linuxOKOct 25 2024
R-4.4-winOKOct 25 2024
R-4.4-macOKOct 25 2024
R-4.3-winOKOct 25 2024
R-4.3-macOKOct 25 2024

Exports:.init4protoanimate_gganimateanimate_plotlyappend_fixed_yarray2dfbasis_guidedbasis_half_circlebasis_odpbasis_oldabasis_onppbasis_pcacreate_manip_spacedraw_basisfacet_wrap_tourfilmstripggtouris_any_layer_classis_orthonormalmanip_var_ofmanual_tourmap_absolutemap_relativeoblique_basispan_zoomplay_manual_tourplay_tour_pathproto_basisproto_basis1dproto_defaultproto_default1dproto_densityproto_density2dproto_frame_cor2proto_hexproto_highlightproto_highlight1dproto_hline0proto_originproto_origin1dproto_pointproto_textproto_vline0render_render_gganimaterender_plotlyrotate_manip_spacerun_appsave_historyscale_01scale_axesscale_colour_discretescale_fill_discretescale_sdtheme_spinifexview_basisview_frameview_manip_space

Dependencies:ADMMaskpassbase64encbitbit64bslibcachemclarabelclassclassIntcliclustercodetoolscolorspacecommonmarkcpp11crayoncrosstalkcurlCVXRdata.tableDBIdbscandigestdoParalleldplyre1071ECOSolveRevaluatefansifarverfastclusterfastmapfontawesomeforeachfsgenericsgganimateggplot2gluegmpgtablehighrhmshtmltoolshtmlwidgetshttpuvhttrisobanditeratorsjquerylibjsonliteKernSmoothknitrlabdsvlabelinglaterlatticelazyevallifecyclelpSolvemagrittrmaotaiMASSMatrixmclustcompmemoisemgcvmimeminpack.lmmunsellnlmeopensslosqppillarpkgconfigplotlypracmaprettyunitsprogresspromisesproxypurrrR6RANNrappdirsrbibutilsRColorBrewerRcppRcppArmadilloRcppDERcppDistRcppEigenRdimtoolsRdpackrglrlangrmarkdownRmpfrRSpectraRtsnes2sassscalesscatterplot3dscssfshapesshinysourcetoolsstringistringrsystibbletidyrtidyselecttinytextourrtransformrtweenrunitsutf8vctrsviridisLitewithrwkxfunxtableyaml

Getting started with spinifex

Rendered fromgetting_started_with_spinifex.Rmdusingknitr::rmarkdownon Oct 25 2024.

Last update: 2022-03-07
Started: 2021-06-29

ggproto API

Rendered fromggproto_api.Rmdusingknitr::rmarkdownon Oct 25 2024.

Last update: 2022-03-07
Started: 2021-06-27

Readme and manuals

Help Manual

Help pageTopics
Binds replicated elements of a list as columns of a data frame..bind_elements2df
Initialize common obj from .global 'ggtour()' objects & test their existence.init4proto
Replicate all vector elements of a list.lapply_rep_len
Animate a ggtour as a .gif via '{gganimate}'animate_gganimate
Animate a ggtour as and HTML widget via '{plotly}'animate_plotly
Append a fixed vertical heightappend_fixed_y
Turns a tour path array into a long data frame.array2df
Solve for the last basis of a guided tour.basis_guided
Create a basis that gives uniform contribution in a circlebasis_half_circle
The basis of Orthogonal Discriminant Projection (ODP)basis_odp
The basis of Orthogonal Linear Discriminant Analysis (OLDA)basis_olda
The basis of Orthogonal Neighborhood Preserving Projection (OLPP)basis_onpp
The basis of Principal Component Analysis (PCA)basis_pca
Wisconsin Breast Cancer DatabaseBreastCancer_na.rm
Create a manipulation space to rotate the manipulation variable in.create_manip_space
Development messagedevMessage
Draw a basis on a static ggplotdraw_basis
Wrap a 1d ribbon of panels into 2d for animationfacet_wrap_tour
Create a "filmstrip" of the frames of a ggtour.filmstrip
Prepare a new grammar of graphics tourggtour
Interpolates a manual tourinterpolate_manual_tour
Check ggplot layers for use of a specific geomis_any_layer_class
Orthonormality of a matrixis_orthonormal
Suggest a manipulation variable.manip_var_of
Produce the series of projection bases to rotate a variable into and out of a projection.manual_tour
Manually offset and scale the first 2 columns of a matrix or data.frame.map_absolute
Returns the axis scale and position.map_relative
Size measurements for adult foraging penguins near Palmer Station, Antarcticapenguins_na.rm
Pima Indians Diabetes Dataset, longPimaIndiansDiabetes_long
Pima Indians Diabetes Dataset, widePimaIndiansDiabetes_wide
Animate a manual tour. supersededplay_manual_tour
Animates the provided tour path.play_tour_path
Tour proto for a 2D and 1D basis axes respectivelyproto_basis proto_basis1d
Wrapper function for default 2D/1D tours respectively.proto_def proto_def1d proto_def2d proto_default proto_default1d proto_default2d
Tour proto for data, 1D density, with rug marksproto_density proto_density1d
Tour proto for data, 1D density, with rug marksproto_density2d
Tour proto for frames square correlationproto_frame_cor2
Tour proto for data, hexagonal heatmapproto_hex
Tour proto highlighing specified pointsproto_highlight proto_highlight1d proto_highlight_2d
Tour proto adding a vertical/horizontal lineproto_hline proto_hline0 proto_vline proto_vline0
Tour proto for data origin zero markproto_origin proto_origin1d proto_origin2d
Tour proto for data pointproto_point proto_points
Tour proto for data, text labelsproto_text
Prepare the ggplot object before passing to either animation package.render_
Render the frames as a _gganimate_ animation.render_gganimate
Animation the frames as a HTML widget.render_plotly
Performs a rotation on the manipulation space of the given manip var.rotate_manip_space
Runs a shiny app demonstrating manual toursrun_app
Save a tour basis array.save_history
Set default color & fill for discrete variablesscale_colour_discrete scale_fill_discrete
Preprocess numeric variablesscale_01 scale_sd
spinifexspinifex-package spinifex
Theme spinifextheme_spinifex
Plot a single frame of a manual tour.view_frame
Plot 2D projection frame and return the axes table.view_manip_space
Sample dataset of daily weather observations from Canberra airport in Australia.weather weather_na.rm
The wine dataset from the UCI Machine Learning Repository.wine