R Markdown Presentation & Plotly

Date

format(Sys.Date(), format="%B %d %Y")
## [1] "April 06 2022"

Slide with Plotly

library(plotly)

set.seed(1234)
xx <- sample.int(100)
yy <- rnorm(100)
yy <- (yy - min(yy))/(max(yy) - min(yy)) * 5

plot_ly(x=~time(xx),y=~yy,type="scatter",mode="lines") %>% layout(title = "Sunny's Daily Run", xaxis = list(title = "Days"),yaxis = list(title = "Distance (KM)"))