Introduction

Interactive Data Visualization Using Plotly

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:

  • Miles per gallon (MPG)
  • Horsepower
  • Weight
  • Transmission type

Dataset Overview

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.


Loading Required Packages

library(plotly)
library(dplyr)

Interactive Plotly Visualization


Findings

The interactive Plotly graph shows that:


Conclusion

Plotly allows users to interact with visualizations by:

This demonstrates how R Markdown can be used to create engaging web-based data presentations.


Created Date

Document created on: July 23, 2026