-
Notifications
You must be signed in to change notification settings - Fork 0
/
UsefulTips.txt
120 lines (92 loc) · 3.4 KB
/
UsefulTips.txt
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!-- --------------------- -->
<!-- NOTE TO THE PRESENTER -->
<!-- --------------------- -->
<!-- Presenter mode -->
<!--
Pressing "h" will show you important keyboard shortcuts
Select the presentation window and press "c" on the keyboard to "clone" the slides (the clones are in sync with each other)
Click in one of the 2 presentation window, You can use the presenter mode by pressing "p" on the keyboard
For more keyboard shortcuts, please visit
https://bookdown.org/yihui/rmarkdown/xaringan-key.html
-->
<!--
Math equations in Markdown
https://rpruim.github.io/s341/S19/from-class/MathinRmd.html
-->
<!-- --------------------- -->
<!-- For developers -->
<!-- --------------------- -->
<!--
Please consult the presentation template at the following links
- http://r.qcbs.ca/templateWorkshops/presentation-template/index.html#1
- https://slides.yihui.org/xaringan/#p1
- https://remarkjs.com/#1
- https://github.com/gnab/remark/wiki/Configuration
- https://irene.vrbik.ok.ubc.ca/slides/NHSRxaringan.html#1
- https://github.com/gnab/remark/wiki/Markdown#slide-properties
- Highlight specific cells:
- https://stackoverflow.com/questions/67206278/how-to-highlight-specific-cells-in-a-dataframe-in-r-markdown-html
###
Name each and every R chunk as they are going to make the sections of the R script
###
I added a bunch of
"
???
#################################
"
to delineate section (makes it easier to follow in the document outline)
- You can remove them if needed. BUT, by adding the "???", it create a separation in the outline, which makes it WAY easier to follow the presentation sections
###
Incremental Slides
Be careful when using the "--" to increment slides.
If you use it between bullet points:
---
# YO!
- First point
--
- another point
When using a class from css
---
# Yo!
.pull-left[
- Sup!
]
--
- I'm good!
###
See the "HOW TO" markdown here
https://github.com/gnab/remark/wiki/Markdown#incremental-slides
###
Search for all the slide increments by opening the search box.
-> type "^--$", without the quote
-> click the "Regex" box
-> start searching!
###
Take a look at extra tools here
https://github.com/gadenbuie/xaringanExtra
-->
####
<!-- ```{r, fig.width=8,fig.height=5} -->
<!-- par(mfrow=c(1,2)) -->
<!-- b.5 = scales::alpha("black",.5) -->
<!-- plot(z~x1, ylab = "Log Odds", pch = 19, col = b.5) -->
<!-- abline(glm.sum) -->
<!-- plot(z~x2, ylab = "Log Odds", pch = 19, col = b.5) -->
<!-- ``` -->
<!-- --- -->
<!-- ## GLM: Logistic -->
<!-- .tiny[ -->
<!-- ```{r sim_logistic_glm_3D} -->
<!-- # scatterplot3d::scatterplot3d(x = x1,y = x2,z = y) -->
<!-- library(plotly) -->
<!-- fig <- plot_ly(df, x = ~x1, y = ~x2, z = ~y, -->
<!-- marker = list(color = ~y, colorscale = c('#FFE1A1', '#683531'), showscale = TRUE)) -->
<!-- fig <- fig %>%add_markers() %>% layout(scene = list(xaxis = list(title = 'x1'), -->
<!-- yaxis = list(title = 'x2'), -->
<!-- zaxis = list(title = 'y')), -->
<!-- annotations = list(x = 1.08,y = 1.05, -->
<!-- text = 'Scale', xref = 'paper',yref = 'paper', -->
<!-- showarrow = FALSE)) -->
<!-- fig -->
<!-- ``` -->
<!-- ] -->