Usage example

As an example we will use measurements of penguins made at Palmer Station, Antarctica.

Since the measurements are in different units, we supply an appropriate scaling.

library(langevitour)
library(palmerpenguins)

completePenguins <- na.omit(penguins[,c(1,3,4,5,6)])
completePenguins
#>       species bill_length_mm bill_depth_mm flipper_length_mm body_mass_g
#> 1      Adelie           39.1          18.7               181        3750
#> 2      Adelie           39.5          17.4               186        3800
#> 3      Adelie           40.3          18.0               195        3250
#> 5      Adelie           36.7          19.3               193        3450
#> 6      Adelie           39.3          20.6               190        3650
#> 7      Adelie           38.9          17.8               181        3625
#> 8      Adelie           39.2          19.6               195        4675
#> 9      Adelie           34.1          18.1               193        3475
#> 10     Adelie           42.0          20.2               190        4250
#> 11     Adelie           37.8          17.1               186        3300
#> 12     Adelie           37.8          17.3               180        3700
#> 13     Adelie           41.1          17.6               182        3200
#> 14     Adelie           38.6          21.2               191        3800
#> 15     Adelie           34.6          21.1               198        4400
#> 16     Adelie           36.6          17.8               185        3700
#> 17     Adelie           38.7          19.0               195        3450
#> 18     Adelie           42.5          20.7               197        4500
#> 19     Adelie           34.4          18.4               184        3325
#> 20     Adelie           46.0          21.5               194        4200
#> 21     Adelie           37.8          18.3               174        3400
#> 22     Adelie           37.7          18.7               180        3600
#> 23     Adelie           35.9          19.2               189        3800
#> 24     Adelie           38.2          18.1               185        3950
#> 25     Adelie           38.8          17.2               180        3800
#> 26     Adelie           35.3          18.9               187        3800
#> 27     Adelie           40.6          18.6               183        3550
#> 28     Adelie           40.5          17.9               187        3200
#> 29     Adelie           37.9          18.6               172        3150
#> 30     Adelie           40.5          18.9               180        3950
#> 31     Adelie           39.5          16.7               178        3250
#> 32     Adelie           37.2          18.1               178        3900
#> 33     Adelie           39.5          17.8               188        3300
#> 34     Adelie           40.9          18.9               184        3900
#> 35     Adelie           36.4          17.0               195        3325
#> 36     Adelie           39.2          21.1               196        4150
#> 37     Adelie           38.8          20.0               190        3950
#> 38     Adelie           42.2          18.5               180        3550
#> 39     Adelie           37.6          19.3               181        3300
#> 40     Adelie           39.8          19.1               184        4650
#> 41     Adelie           36.5          18.0               182        3150
#> 42     Adelie           40.8          18.4               195        3900
#> 43     Adelie           36.0          18.5               186        3100
#> 44     Adelie           44.1          19.7               196        4400
#> 45     Adelie           37.0          16.9               185        3000
#> 46     Adelie           39.6          18.8               190        4600
#> 47     Adelie           41.1          19.0               182        3425
#> 48     Adelie           37.5          18.9               179        2975
#> 49     Adelie           36.0          17.9               190        3450
#> 50     Adelie           42.3          21.2               191        4150
#> 51     Adelie           39.6          17.7               186        3500
#> 52     Adelie           40.1          18.9               188        4300
#> 53     Adelie           35.0          17.9               190        3450
#> 54     Adelie           42.0          19.5               200        4050
#> 55     Adelie           34.5          18.1               187        2900
#> 56     Adelie           41.4          18.6               191        3700
#> 57     Adelie           39.0          17.5               186        3550
#> 58     Adelie           40.6          18.8               193        3800
#> 59     Adelie           36.5          16.6               181        2850
#> 60     Adelie           37.6          19.1               194        3750
#> 61     Adelie           35.7          16.9               185        3150
#> 62     Adelie           41.3          21.1               195        4400
#> 63     Adelie           37.6          17.0               185        3600
#> 64     Adelie           41.1          18.2               192        4050
#> 65     Adelie           36.4          17.1               184        2850
#> 66     Adelie           41.6          18.0               192        3950
#> 67     Adelie           35.5          16.2               195        3350
#> 68     Adelie           41.1          19.1               188        4100
#> 69     Adelie           35.9          16.6               190        3050
#> 70     Adelie           41.8          19.4               198        4450
#> 71     Adelie           33.5          19.0               190        3600
#> 72     Adelie           39.7          18.4               190        3900
#> 73     Adelie           39.6          17.2               196        3550
#> 74     Adelie           45.8          18.9               197        4150
#> 75     Adelie           35.5          17.5               190        3700
#> 76     Adelie           42.8          18.5               195        4250
#> 77     Adelie           40.9          16.8               191        3700
#> 78     Adelie           37.2          19.4               184        3900
#> 79     Adelie           36.2          16.1               187        3550
#> 80     Adelie           42.1          19.1               195        4000
#> 81     Adelie           34.6          17.2               189        3200
#> 82     Adelie           42.9          17.6               196        4700
#> 83     Adelie           36.7          18.8               187        3800
#> 84     Adelie           35.1          19.4               193        4200
#> 85     Adelie           37.3          17.8               191        3350
#> 86     Adelie           41.3          20.3               194        3550
#> 87     Adelie           36.3          19.5               190        3800
#> 88     Adelie           36.9          18.6               189        3500
#> 89     Adelie           38.3          19.2               189        3950
#> 90     Adelie           38.9          18.8               190        3600
#> 91     Adelie           35.7          18.0               202        3550
#> 92     Adelie           41.1          18.1               205        4300
#> 93     Adelie           34.0          17.1               185        3400
#> 94     Adelie           39.6          18.1               186        4450
#> 95     Adelie           36.2          17.3               187        3300
#> 96     Adelie           40.8          18.9               208        4300
#> 97     Adelie           38.1          18.6               190        3700
#> 98     Adelie           40.3          18.5               196        4350
#> 99     Adelie           33.1          16.1               178        2900
#> 100    Adelie           43.2          18.5               192        4100
#> 101    Adelie           35.0          17.9               192        3725
#> 102    Adelie           41.0          20.0               203        4725
#> 103    Adelie           37.7          16.0               183        3075
#> 104    Adelie           37.8          20.0               190        4250
#> 105    Adelie           37.9          18.6               193        2925
#> 106    Adelie           39.7          18.9               184        3550
#> 107    Adelie           38.6          17.2               199        3750
#> 108    Adelie           38.2          20.0               190        3900
#> 109    Adelie           38.1          17.0               181        3175
#> 110    Adelie           43.2          19.0               197        4775
#> 111    Adelie           38.1          16.5               198        3825
#> 112    Adelie           45.6          20.3               191        4600
#> 113    Adelie           39.7          17.7               193        3200
#> 114    Adelie           42.2          19.5               197        4275
#> 115    Adelie           39.6          20.7               191        3900
#> 116    Adelie           42.7          18.3               196        4075
#> 117    Adelie           38.6          17.0               188        2900
#> 118    Adelie           37.3          20.5               199        3775
#> 119    Adelie           35.7          17.0               189        3350
#> 120    Adelie           41.1          18.6               189        3325
#> 121    Adelie           36.2          17.2               187        3150
#> 122    Adelie           37.7          19.8               198        3500
#> 123    Adelie           40.2          17.0               176        3450
#> 124    Adelie           41.4          18.5               202        3875
#> 125    Adelie           35.2          15.9               186        3050
#> 126    Adelie           40.6          19.0               199        4000
#> 127    Adelie           38.8          17.6               191        3275
#> 128    Adelie           41.5          18.3               195        4300
#> 129    Adelie           39.0          17.1               191        3050
#> 130    Adelie           44.1          18.0               210        4000
#> 131    Adelie           38.5          17.9               190        3325
#> 132    Adelie           43.1          19.2               197        3500
#> 133    Adelie           36.8          18.5               193        3500
#> 134    Adelie           37.5          18.5               199        4475
#> 135    Adelie           38.1          17.6               187        3425
#> 136    Adelie           41.1          17.5               190        3900
#> 137    Adelie           35.6          17.5               191        3175
#> 138    Adelie           40.2          20.1               200        3975
#> 139    Adelie           37.0          16.5               185        3400
#> 140    Adelie           39.7          17.9               193        4250
#> 141    Adelie           40.2          17.1               193        3400
#> 142    Adelie           40.6          17.2               187        3475
#> 143    Adelie           32.1          15.5               188        3050
#> 144    Adelie           40.7          17.0               190        3725
#> 145    Adelie           37.3          16.8               192        3000
#> 146    Adelie           39.0          18.7               185        3650
#> 147    Adelie           39.2          18.6               190        4250
#> 148    Adelie           36.6          18.4               184        3475
#> 149    Adelie           36.0          17.8               195        3450
#> 150    Adelie           37.8          18.1               193        3750
#> 151    Adelie           36.0          17.1               187        3700
#> 152    Adelie           41.5          18.5               201        4000
#> 153    Gentoo           46.1          13.2               211        4500
#> 154    Gentoo           50.0          16.3               230        5700
#> 155    Gentoo           48.7          14.1               210        4450
#> 156    Gentoo           50.0          15.2               218        5700
#> 157    Gentoo           47.6          14.5               215        5400
#> 158    Gentoo           46.5          13.5               210        4550
#> 159    Gentoo           45.4          14.6               211        4800
#> 160    Gentoo           46.7          15.3               219        5200
#> 161    Gentoo           43.3          13.4               209        4400
#> 162    Gentoo           46.8          15.4               215        5150
#> 163    Gentoo           40.9          13.7               214        4650
#> 164    Gentoo           49.0          16.1               216        5550
#> 165    Gentoo           45.5          13.7               214        4650
#> 166    Gentoo           48.4          14.6               213        5850
#> 167    Gentoo           45.8          14.6               210        4200
#> 168    Gentoo           49.3          15.7               217        5850
#> 169    Gentoo           42.0          13.5               210        4150
#> 170    Gentoo           49.2          15.2               221        6300
#> 171    Gentoo           46.2          14.5               209        4800
#> 172    Gentoo           48.7          15.1               222        5350
#> 173    Gentoo           50.2          14.3               218        5700
#> 174    Gentoo           45.1          14.5               215        5000
#> 175    Gentoo           46.5          14.5               213        4400
#> 176    Gentoo           46.3          15.8               215        5050
#> 177    Gentoo           42.9          13.1               215        5000
#> 178    Gentoo           46.1          15.1               215        5100
#> 179    Gentoo           44.5          14.3               216        4100
#> 180    Gentoo           47.8          15.0               215        5650
#> 181    Gentoo           48.2          14.3               210        4600
#> 182    Gentoo           50.0          15.3               220        5550
#> 183    Gentoo           47.3          15.3               222        5250
#> 184    Gentoo           42.8          14.2               209        4700
#> 185    Gentoo           45.1          14.5               207        5050
#> 186    Gentoo           59.6          17.0               230        6050
#> 187    Gentoo           49.1          14.8               220        5150
#> 188    Gentoo           48.4          16.3               220        5400
#> 189    Gentoo           42.6          13.7               213        4950
#> 190    Gentoo           44.4          17.3               219        5250
#> 191    Gentoo           44.0          13.6               208        4350
#> 192    Gentoo           48.7          15.7               208        5350
#> 193    Gentoo           42.7          13.7               208        3950
#> 194    Gentoo           49.6          16.0               225        5700
#> 195    Gentoo           45.3          13.7               210        4300
#> 196    Gentoo           49.6          15.0               216        4750
#> 197    Gentoo           50.5          15.9               222        5550
#> 198    Gentoo           43.6          13.9               217        4900
#> 199    Gentoo           45.5          13.9               210        4200
#> 200    Gentoo           50.5          15.9               225        5400
#> 201    Gentoo           44.9          13.3               213        5100
#> 202    Gentoo           45.2          15.8               215        5300
#> 203    Gentoo           46.6          14.2               210        4850
#> 204    Gentoo           48.5          14.1               220        5300
#> 205    Gentoo           45.1          14.4               210        4400
#> 206    Gentoo           50.1          15.0               225        5000
#> 207    Gentoo           46.5          14.4               217        4900
#> 208    Gentoo           45.0          15.4               220        5050
#> 209    Gentoo           43.8          13.9               208        4300
#> 210    Gentoo           45.5          15.0               220        5000
#> 211    Gentoo           43.2          14.5               208        4450
#> 212    Gentoo           50.4          15.3               224        5550
#> 213    Gentoo           45.3          13.8               208        4200
#> 214    Gentoo           46.2          14.9               221        5300
#> 215    Gentoo           45.7          13.9               214        4400
#> 216    Gentoo           54.3          15.7               231        5650
#> 217    Gentoo           45.8          14.2               219        4700
#> 218    Gentoo           49.8          16.8               230        5700
#> 219    Gentoo           46.2          14.4               214        4650
#> 220    Gentoo           49.5          16.2               229        5800
#> 221    Gentoo           43.5          14.2               220        4700
#> 222    Gentoo           50.7          15.0               223        5550
#> 223    Gentoo           47.7          15.0               216        4750
#> 224    Gentoo           46.4          15.6               221        5000
#> 225    Gentoo           48.2          15.6               221        5100
#> 226    Gentoo           46.5          14.8               217        5200
#> 227    Gentoo           46.4          15.0               216        4700
#> 228    Gentoo           48.6          16.0               230        5800
#> 229    Gentoo           47.5          14.2               209        4600
#> 230    Gentoo           51.1          16.3               220        6000
#> 231    Gentoo           45.2          13.8               215        4750
#> 232    Gentoo           45.2          16.4               223        5950
#> 233    Gentoo           49.1          14.5               212        4625
#> 234    Gentoo           52.5          15.6               221        5450
#> 235    Gentoo           47.4          14.6               212        4725
#> 236    Gentoo           50.0          15.9               224        5350
#> 237    Gentoo           44.9          13.8               212        4750
#> 238    Gentoo           50.8          17.3               228        5600
#> 239    Gentoo           43.4          14.4               218        4600
#> 240    Gentoo           51.3          14.2               218        5300
#> 241    Gentoo           47.5          14.0               212        4875
#> 242    Gentoo           52.1          17.0               230        5550
#> 243    Gentoo           47.5          15.0               218        4950
#> 244    Gentoo           52.2          17.1               228        5400
#> 245    Gentoo           45.5          14.5               212        4750
#> 246    Gentoo           49.5          16.1               224        5650
#> 247    Gentoo           44.5          14.7               214        4850
#> 248    Gentoo           50.8          15.7               226        5200
#> 249    Gentoo           49.4          15.8               216        4925
#> 250    Gentoo           46.9          14.6               222        4875
#> 251    Gentoo           48.4          14.4               203        4625
#> 252    Gentoo           51.1          16.5               225        5250
#> 253    Gentoo           48.5          15.0               219        4850
#> 254    Gentoo           55.9          17.0               228        5600
#> 255    Gentoo           47.2          15.5               215        4975
#> 256    Gentoo           49.1          15.0               228        5500
#> 257    Gentoo           47.3          13.8               216        4725
#> 258    Gentoo           46.8          16.1               215        5500
#> 259    Gentoo           41.7          14.7               210        4700
#> 260    Gentoo           53.4          15.8               219        5500
#> 261    Gentoo           43.3          14.0               208        4575
#> 262    Gentoo           48.1          15.1               209        5500
#> 263    Gentoo           50.5          15.2               216        5000
#> 264    Gentoo           49.8          15.9               229        5950
#> 265    Gentoo           43.5          15.2               213        4650
#> 266    Gentoo           51.5          16.3               230        5500
#> 267    Gentoo           46.2          14.1               217        4375
#> 268    Gentoo           55.1          16.0               230        5850
#> 269    Gentoo           44.5          15.7               217        4875
#> 270    Gentoo           48.8          16.2               222        6000
#> 271    Gentoo           47.2          13.7               214        4925
#> 273    Gentoo           46.8          14.3               215        4850
#> 274    Gentoo           50.4          15.7               222        5750
#> 275    Gentoo           45.2          14.8               212        5200
#> 276    Gentoo           49.9          16.1               213        5400
#> 277 Chinstrap           46.5          17.9               192        3500
#> 278 Chinstrap           50.0          19.5               196        3900
#> 279 Chinstrap           51.3          19.2               193        3650
#> 280 Chinstrap           45.4          18.7               188        3525
#> 281 Chinstrap           52.7          19.8               197        3725
#> 282 Chinstrap           45.2          17.8               198        3950
#> 283 Chinstrap           46.1          18.2               178        3250
#> 284 Chinstrap           51.3          18.2               197        3750
#> 285 Chinstrap           46.0          18.9               195        4150
#> 286 Chinstrap           51.3          19.9               198        3700
#> 287 Chinstrap           46.6          17.8               193        3800
#> 288 Chinstrap           51.7          20.3               194        3775
#> 289 Chinstrap           47.0          17.3               185        3700
#> 290 Chinstrap           52.0          18.1               201        4050
#> 291 Chinstrap           45.9          17.1               190        3575
#> 292 Chinstrap           50.5          19.6               201        4050
#> 293 Chinstrap           50.3          20.0               197        3300
#> 294 Chinstrap           58.0          17.8               181        3700
#> 295 Chinstrap           46.4          18.6               190        3450
#> 296 Chinstrap           49.2          18.2               195        4400
#> 297 Chinstrap           42.4          17.3               181        3600
#> 298 Chinstrap           48.5          17.5               191        3400
#> 299 Chinstrap           43.2          16.6               187        2900
#> 300 Chinstrap           50.6          19.4               193        3800
#> 301 Chinstrap           46.7          17.9               195        3300
#> 302 Chinstrap           52.0          19.0               197        4150
#> 303 Chinstrap           50.5          18.4               200        3400
#> 304 Chinstrap           49.5          19.0               200        3800
#> 305 Chinstrap           46.4          17.8               191        3700
#> 306 Chinstrap           52.8          20.0               205        4550
#> 307 Chinstrap           40.9          16.6               187        3200
#> 308 Chinstrap           54.2          20.8               201        4300
#> 309 Chinstrap           42.5          16.7               187        3350
#> 310 Chinstrap           51.0          18.8               203        4100
#> 311 Chinstrap           49.7          18.6               195        3600
#> 312 Chinstrap           47.5          16.8               199        3900
#> 313 Chinstrap           47.6          18.3               195        3850
#> 314 Chinstrap           52.0          20.7               210        4800
#> 315 Chinstrap           46.9          16.6               192        2700
#> 316 Chinstrap           53.5          19.9               205        4500
#> 317 Chinstrap           49.0          19.5               210        3950
#> 318 Chinstrap           46.2          17.5               187        3650
#> 319 Chinstrap           50.9          19.1               196        3550
#> 320 Chinstrap           45.5          17.0               196        3500
#> 321 Chinstrap           50.9          17.9               196        3675
#> 322 Chinstrap           50.8          18.5               201        4450
#> 323 Chinstrap           50.1          17.9               190        3400
#> 324 Chinstrap           49.0          19.6               212        4300
#> 325 Chinstrap           51.5          18.7               187        3250
#> 326 Chinstrap           49.8          17.3               198        3675
#> 327 Chinstrap           48.1          16.4               199        3325
#> 328 Chinstrap           51.4          19.0               201        3950
#> 329 Chinstrap           45.7          17.3               193        3600
#> 330 Chinstrap           50.7          19.7               203        4050
#> 331 Chinstrap           42.5          17.3               187        3350
#> 332 Chinstrap           52.2          18.8               197        3450
#> 333 Chinstrap           45.2          16.6               191        3250
#> 334 Chinstrap           49.3          19.9               203        4050
#> 335 Chinstrap           50.2          18.8               202        3800
#> 336 Chinstrap           45.6          19.4               194        3525
#> 337 Chinstrap           51.9          19.5               206        3950
#> 338 Chinstrap           46.8          16.5               189        3650
#> 339 Chinstrap           45.7          17.0               195        3650
#> 340 Chinstrap           55.8          19.8               207        4000
#> 341 Chinstrap           43.5          18.1               202        3400
#> 342 Chinstrap           49.6          18.2               193        3775
#> 343 Chinstrap           50.8          19.0               210        4100
#> 344 Chinstrap           50.2          18.7               198        3775

scale <- apply(completePenguins[,-1], 2, sd)*4

langevitour(
    completePenguins[,-1], completePenguins$species, 
    scale=scale, pointSize=2, elementId="myWidget")


Things to try:

Drag labels onto the plot.
Turn on a guide.
Experiment with “damping” and “heat” in the hamburger menu.
When only three measurements are shown, your eyes will interpret the display as 3D. Hide measurements by unchecking the checkbox on their label.

Further examples

Some further examples have been omitted from the CRAN package due to their large size and problematic dependencies. They can be viewed on the langevitour website: