{"id":32207824,"url":"https://github.com/nspyrison/spinifex","last_synced_at":"2025-10-22T05:59:41.980Z","repository":{"id":30463784,"uuid":"125002840","full_name":"nspyrison/spinifex","owner":"nspyrison","description":"manually control the contribution of variable to linear projections and tours","archived":false,"fork":false,"pushed_at":"2025-09-17T21:37:41.000Z","size":23218,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-22T05:59:41.068Z","etag":null,"topics":["dimension","reduction","tours","visualization"],"latest_commit_sha":null,"homepage":"https://nspyrison.github.io/spinifex/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nspyrison.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-13T06:25:26.000Z","updated_at":"2025-09-17T21:37:45.000Z","dependencies_parsed_at":"2025-08-22T18:37:54.221Z","dependency_job_id":"992810bc-b5bb-4043-818d-ab6764e28f54","html_url":"https://github.com/nspyrison/spinifex","commit_stats":{"total_commits":671,"total_committers":5,"mean_commits":134.2,"dds":"0.12816691505216093","last_synced_commit":"c98fe66f93d7e4e7eed0bb28a924645e44f56367"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/nspyrison/spinifex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nspyrison%2Fspinifex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nspyrison%2Fspinifex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nspyrison%2Fspinifex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nspyrison%2Fspinifex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nspyrison","download_url":"https://codeload.github.com/nspyrison/spinifex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nspyrison%2Fspinifex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280389301,"owners_count":26322507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dimension","reduction","tours","visualization"],"created_at":"2025-10-22T05:59:39.337Z","updated_at":"2025-10-22T05:59:41.971Z","avatar_url":"https://github.com/nspyrison.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CRAN Status Badge](http://www.r-pkg.org/badges/version/spinifex)](https://cran.r-project.org/package=spinifex) [![Codecov test coverage](https://codecov.io/gh/nspyrison/spinifex/branch/master/graph/badge.svg)](https://app.codecov.io/gh/nspyrison/spinifex?branch=master) [![CRAN Downloads Each Month](http://cranlogs.r-pkg.org/badges/spinifex)](https://cran.r-project.org/package=spinifex)\n\n# spinifex \u003cimg src=\"man/figures/spinifex_hex.png\" alt=\"spinifex R package!\" align=\"right\"/\u003e\n\n## About tours\n\nData visualization *tour* is a class of linear projections that are animate small changes in a projection basis over time. Shadows are an example of a 3D object casting a 2D linear projection. Imagine a bar stool cast a circular shadow of its seat. Watching the shadow alone, a rotation of the objection would quickly give structural information about the object; when the legs are rotated into frame you can be more certain the object is a bar stool. In the same way, a tour watches a lower-dimensional projection of the data object. The object permanence of the observations between frames holds structural information that is revealed as the object is rotated.\n\n\u003c!---\nThis extends the number of dimensions that we can view in data-space! This is applicable to many visualizations across all disciplines. We know that going to numerical summarization alone is dangerous. We need look no further than Anscomb's quartet.\n\n\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/e/ec/Anscombe%27s_quartet_3.svg\" alt=\"Anscomb's quartet, Wikipedia\" style=\"width:70%;height:70%;\"\u003e\n--\u003e\n\n\n## Scope\n\nSuch visualizations are applicable to numeric matrices which could be approximations of component spaces or feature decomposition of non-tabular data. Continuous quantitative variables are preferred, although ordinal discrete variables can also be used. Mapping color and/or shape to a (supervised) class tends to be helpful.\n\n\n## Description\n\nThe `tourr` R package implements grand tours (constrained random walks in the basis), projection pursuit (basis anneals to some objective function), and several other variants and options of visualization tours.\n\n__Grand tour__\n\n![](https://github.com/nspyrison/spinifex/blob/master/buildignore/readme_img/penguins_gt.gif?raw=true)\n\n\nThe work and contribution of `spinifex` are primarily two-fold. The addition of manual tours which allow for user defined (and interactive!) control of the basis. Secondly, a layered API to create tour elements that mirrors the additive creation of `ggplot2` visuals. The extension to `gganimate` and `plotly` graphics packages, which allow for more control over display and exporting .gif, .mp4, and .html widgets of tours. The later can also consume tours produced in `tourr`!\n\nWe see that bill length is important for separating the orange and green species. Let's change its contribution with a manual tour:\n\n__Manual tour__\n![](https://github.com/nspyrison/spinifex/blob/master/buildignore/readme_img/penguins_mt.gif?raw=true)\n\n\n## Getting started\n```\n#install.packages(\"spinifex\")             ## Install from CRAN\nlibrary(\"spinifex\")                       ## Load into session\nrun_app(\"radial_tour\")                    ## Run a local shiny app, showing radial tours\nvignette(\"getting started with spinifex\") ## Introduction to tours and spinifex\nvignette(\"ggproto api\")                   ## Introduction to the new ggproto api\n?ggtour                                   ## Examples and links to ggproto functions\nhelp(package = \"spinifex\")                ## Review the package contents and documentation\n```\n\n\n## ggproto API\n\nThe ggproto API is a layered approach to the composition of animated tours, it should feel similar to the composition of ggplots.\n\n| Family     | Function           | Related to          | Description                                             |\n|------------|--------------------|---------------------|---------------------------------------------------------|\n| processing | scale_01/sd        | -                   | scale each column to [01]/std dev away from the mean    |\n| processing | basis_pca/olda/... | Rdimtools::do.*     | basis of orthogonal component spaces                    |\n| processing | basis_half_circle  | -                   | basis with uniform contribution across half of a circle |\n| processing | basis_guided       | tourr::guided_tour  | silently return the basis from a guided tour            |\n| tour path  | manual_tour        | -                   | basis and interpolation information for a manual tour   |\n| tour path  | save_history       | tourr::save_history | silent extended wrapper returning other tour arrays     |\n| display    | ggtour             | ggplot2::ggplot     | canvas and initialization for a tour animation          |\n| display    | proto_point/text   | geom_point/text     | adds observation points/text                            |\n| display    | proto_density/2d   | geom_density/2d     | adds density curve/2d contours                          |\n| display    | proto_hex          | geom_hex            | adds hexagonal heatmap of observations                  |\n| display    | proto_basis/1d     | -                   | adds adding basis visual in a unit-circle/-rectangle    |\n| display    | proto_origin/1d    | -                   | adds reference mark in the center of the data           |\n| display    | proto_default/1d   | -                   | wrapper for proto_* point + basis + origin              |\n| display    | facet_wrap_tour    | ggplot2::facet_wrap | facets on the levels of variable                        |\n| display    | append_fixed_y     | -                   | add/overwrite a fixed vertical position                 |\n| animation  | animate_plotly     | plotly::ggplotly    | render as an interactive html widget                    |\n| animation  | animate_gganimate  | gganimate::animate  | render as a gif, mp4, or other video format             |\n| animation  | filmstrip          | -                   | static gpplot faceting on the frames of the animation   |\n\n## Reporting issues\n\nPlease submit bug reports, errors, and feature requests to \u003chttps://github.com/nspyrison/spinifex/issues\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnspyrison%2Fspinifex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnspyrison%2Fspinifex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnspyrison%2Fspinifex/lists"}