Interactive Data Visualization with Plotly

Vandita Singh

20 September 2026

Introduction

This presentation demonstrates an interactive data visualization created using R Markdown and Plotly.

Dataset

  • Dataset: mtcars
  • 32 different car models
  • Variables include fuel efficiency, weight, horsepower, and cylinders

Objective

To explore the relationship between:

  • Vehicle weight
  • Fuel efficiency
  • Number of cylinders

About the Data

The analysis focuses on three variables:

Variable Description
wt Vehicle weight in 1000 lbs
mpg Miles per gallon
cyl Number of cylinders

The objective is to understand whether vehicle weight is related to fuel efficiency.

Interactive Plot

MPG vs Vehicle Weight

What Does the Plot Show?

The interactive plot allows us to explore individual cars by hovering over the points.

Key observations

  • Heavier cars generally have lower fuel efficiency.
  • Cars with different cylinder counts form different groups.
  • Individual cars can be examined using the hover feature.
  • The graph can be zoomed and explored interactively.

Interactive Features

The Plotly visualization allows the user to:

  • Hover over individual cars
  • View the car name
  • View vehicle weight
  • View MPG
  • View cylinder count
  • Zoom into the graph
  • Pan across the graph
  • Reset the graph

Conclusion

The analysis demonstrates how R Markdown and Plotly can be combined to create an interactive web-based presentation.

The visualization shows an overall negative relationship between vehicle weight and fuel efficiency.

Interactive visualization makes it easier to explore individual observations and compare cars with different numbers of cylinders.

Date of Creation

20 September 2026

This presentation was created using R Markdown and Plotly.