Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An interactive interface via loon to the R package tourr

NotificationsYou must be signed in to change notification settings

z267xu/loon.tourr

 
 

Repository files navigation

CRAN_Status_Badge

Grand Tour

The grand tour (D.Asimov) is a mechanism to randomly select a 2D projection in ap column space. Transitions between two serial projections are interpolated so that the rotating motion is smooth. It was first implemented in XGobi, GGobi (D.Cook,D.F.Swayne,A.Buja), then inR (packagetourrH.Wickham,D.Cook and et al.)

In our package, such high dimensional visualization mechanism is re-implemented inloon. A slider bar is provided. As we scroll bar, the data will be transformed from this projection to the next.

Install

loon.tourr can be achieved directly from github repo

remotes::install_github("https://github.com/great-northern-diver/loon.tourr")

Documents: the documentation ofloon.tourr ishere

A 2D projection

Colour represents the flea species. A convex hull is created to classify groups easily.

library(loon.tourr)fl <- tourr::flea[, 1:6]p <- l_tour(fl, color = tourr::flea$species)l <- l_layer_hull(p, group = tourr::flea$species)

The bottom radio buttons represent the scaling of the data; if the random projections are not satifying, press buttonReset, new random projections will be created.

A high dimensional projection

Beyond 2 dimensions, higher dimensional tours can also be created (displayed in radial axes, parallel axes or andrews plot).

p <- l_tour(fl,            tour_path = tourr::grand_tour(4),            color = tourr::flea$species)

The future of our project is obscure. It can be an isolated package or be merged inloon as a demo.

Set facets

The tour plot can be separated by some variables into multiple panels.

p <- l_tour(tourr::olive[, -c(1:2)],            by = tourr::olive$region,            color = tourr::olive$area)

Pairs plot

An n-D tour path with a scatter plot matrix.

p <- l_tour_pairs(tourr::olive[, -c(1:2)],                  tour_path = tourr::grand_tour(4),                  color = tourr::olive$area)

About

An interactive interface via loon to the R package tourr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R93.7%
  • TeX6.3%

[8]ページ先頭

©2009-2025 Movatter.jp