Interactive Plotly Presentation

Haider Ali

2025-11-19

Slide 1 — Welcome

Interactive Plotly demo

  • Created on: 2025-11-19
  • Presentation format: Reveal.js
  • Plotting library: Plotly (interactive)

Slide 2 — A Plotly scatter with mtcars

This slide contains an interactive Plotly scatter plot.
Try hover, zoom, and the modebar.

Slide 3 — Another Plotly view (faceted-like)

Nice interactive bar chart to show grouping.

library(plotly)

avg_hp <- mtcars %>%
mutate(cyl = factor(cyl)) %>%
group_by(cyl) %>%
summarise(avg_hp = mean(hp), n = n())

plot_ly(avg_hp, x = ~cyl, y = ~avg_hp, type = "bar", text = ~paste0("n=", n)) %>%
layout(title = "Average Horsepower by Cylinder Count",
xaxis = list(title = "Cylinders"),
yaxis = list(title = "Avg HP"))

Slide 4 — Notes & Hosting

How I made this

R + RStudio (or rmarkdown::render()).

revealjs output so it is a presentation (slides).

Plotly is used for interactive plots.

Hosting tips

See the next slide for hosting steps.

# 2) Short CSS (optional)If you want a small `styles.css` (place in same folder), optional: