This presentation demonstrates the use of Plotly in R Markdown to create an interactive visualization.
The dataset used is the built-in mtcars dataset, which contains information about different car models, including:
The mtcars dataset contains data collected from the 1974 Motor Trend US magazine.
Some variables include:
The goal is to explore the relationship between horsepower and fuel efficiency.
library(plotly)
library(dplyr)
The interactive Plotly graph shows that:
Plotly allows users to interact with visualizations by:
This demonstrates how R Markdown can be used to create engaging web-based data presentations.
Document created on: July 23, 2026