RPubs will retire in June 2027. Your existing documents will stay accessible through December 31, 2031
and Connect Cloud is the recommended home for new publishing. Read the blog post

Recently Published

Credit Union Raw
H_Credit Union Raw
Tourist Raw
H_Tourist Raw
Farm Raw
H_Farm Raw
Women club raw
H_Women club Raw
Correlation Lab
Homework_1
Data Analysis and Decision Making HW Assignment 1
Predicting Fuel Efficiency Using Car Weight and Horsepower
In this project, we use multiple linear regression to model a car’s fuel efficiency (measured in miles per gallon, MPG) based on two key features: weight and horsepower. Using the built-in mtcars dataset in R, we explore how these variables relate to MPG, visualize the relationships with ggplot2 and plotly, and interpret the regression output. Our final model explains approximately 83% of the variation in MPG, showing that heavier and more powerful cars tend to have lower fuel efficiency.