class: title-slide, left, bottom

library(knitr)

### Packages not on CRAN ###

# install.packages("remotes")
# remotes::install_github("mitchelloharawild/icons")
library(icons) # icons need to be loaded to view so run following code if not already done
# icons::download_fontawesome()

# install.packages("devtools")
#devtools::install_github("gadenbuie/xaringanExtra")
library(xaringanExtra)
xaringanExtra::use_share_again() # need to get the slide button on html view

# set default options
opts_chunk$set(echo = FALSE,
               fig.width = 7.252,
               fig.height = 4,
               dpi = 300,
               dev.args = list(type = "cairo"),
               eval = TRUE,
               warning = FALSE,
               message = FALSE,
               error = FALSE)
# Adds logo to all slides

xaringanExtra::use_logo(
  image_url = "https://cdu-data-science-team.github.io/assets/logo/nottshc-cdu-data-science-logo-800.png",
  link_url = "https://cdu-data-science-team.github.io/team-blog/",
  exclude_class = c("inverse", "hide-logo"),
  width = "300px",
  height = "200px",
  position = css_position(top = "0em", right = "0em")
)

r rmarkdown::metadata$title


r rmarkdown::metadata$subtitle

r rmarkdown::metadata$author | r format(Sys.time(), '%B %Y')


class: inverse, middle, center

An inverse slide

Often used for transitions

Links on an inverse slide would look like
this one leading to acknowledgements


class: inverse-white, middle, center

A white background inverse slide

To remove bottom image

If slides overrun the bottom image this slide can be used to remove the image completely - keeping the logo unless hide-logo added to class: like
this one leading to a table that overruns the background


Bullets and text color

--

--

--

--


You can emphasize text with color:

--

And make it bold or italicized using Markdown:


Tables and quotes

Table

knitr::kable(head(iris), format = 'html')

Quote

This is what a quote looks like.


class: inverse-white

name: line-highlight

Line highlighting

An example of using the trailing comment #<< to highlight lines:

Code

library(ggplot2)
ggplot(mtcars) + 
  aes(mpg, disp) + 
  geom_point() +   #<<
  geom_smooth()    #<<

Output

library(ggplot2)
ggplot(mtcars) + 
  aes(mpg, disp) + 
  geom_point() +   #<<
  geom_smooth()    #<<

class: inverse-white, hide-logo

Footnotes

The logo can be removed from a slide where the title overruns by using class: hide-logo

.footnote[The nhsr theme was designed by Silvia Canelon for, and with feedback from, the NHS-R Community, following the NHS identity guidelines. Note that the xaringan share overlaps the footnotes if there are any hyperlinks.]


class: inverse

name: acknowledgement

Acknowledgments

Acknowledgements: the professional look of this presentation, using NHS and Nottinghamshire Healthcare NHS Foundation Trust colour branding, exists because of the amazing work of Silvia Canelón, details of the workshops she ran at the NHS-R Community conference, Milan Wiedemann who created the CDU Data Science logo with the help of the team and Zoë Turner for putting together the slides.

r icons::fontawesome("twitter") @DataScienceNott
r icons::fontawesome("github") Clinical Development Unit Data Science Team
r icons::fontawesome("paper-plane") cdudatascience@nottshc.nhs.uk



CDU-data-science-team/nottshcMethods documentation built on March 19, 2023, 11:54 a.m.