-
Notifications
You must be signed in to change notification settings - Fork 0
/
reprex_html_widget_not_rendering.rmd
82 lines (76 loc) · 1.95 KB
/
reprex_html_widget_not_rendering.rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
title: "Multivariate data vis, Linear projections, and their application to local explanations of models"
subtitle: "MI2 DataLab"
author: "Nicholas Spyrison"
email: "[email protected]"
date: "11 October 2021"
length: "45 minutes"
affiliation: "Monash University"
repo: "nspyrison/mi2_talk"
output:
xaringan::moon_reader:
css:
- ninjutsu
- "assets/font-awesome-all.css"
#- "assets/xaringan-themer.css"
- "assets/tachyons-addon.css"
- "assets/animate.css"
- "assets/fira-code.css"
- "assets/boxes.css"
- "assets/table.css"
- "assets/styles.css"
- "assets/monash-brand.css"
- "assets/monash-fonts.css"
- "assets/slide-types.css"
- "assets/custom.css"
self_contained: false
seal: false
nature:
highlightStyle: magula
highlightLanguage: r
highlightLines: true
highlightSpans: false
countIncrementalSlides: false
slideNumberFormat: '%current%/%total%'
navigation:
scroll: false
touch: true
click: false
ratio: '16:9'
editor_options:
chunk_output_type: console
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
eval = TRUE, # R code
echo = FALSE, # code text
include = TRUE, # plots
fig.align = "center",
collapse = TRUE,
message = F, warning = F, error = F,
cache = F, cache.lazy = F
)
require("knitr")
require("kableExtra")
require("magrittr")
## for cheem stuff:
require("plotly")
require("spinifex")
require("tourr")
require("cheem")
```
# cut out everything, doesn't work...
have tried changing reulst knitr chunk opts...
TOP___
```{r echo=F, out.width='10%'}
X_std <- tourr::flea[,1:6] %>% spinifex::scale_sd()
clas <- tourr::flea$species
gt_path <- spinifex::save_history(X_std, max_bases = 6)
ggt <- ggtour(gt_path, angle = .2) +
proto_default(list(color = clas, shape = clas))
#ggt
#length(ggt)
#animate_gganimate(ggt)
animate_plotly(ggt)
```
BOTTOM____