Rows: 15000 Columns: 8
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (1): Gender
dbl (7): User_ID, Age, Height, Weight, Duration, Heart_Rate, Body_Temp
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
ggplot(df, aes(x = Duration, y = Heart_Rate, color = Gender)) +geom_point() +geom_smooth(method ="lm") +labs(title ="Workout Duration vs Heart Rate",x ="Workout Duration",y ="Heart Rate",color ="Gender",caption ="Source: Exercise dataset (exercise.csv), originally from Kaggle" ) +theme_minimal()
`geom_smooth()` using formula = 'y ~ x'
This graph shows the relationship between workout duration and heart rate. As workout duration increases, heart rate also tends to increase, which makes sense because longer workouts require more physical effort. The regression line highlights this positive trend, and the different colors represent gender differences across individuals.
Exercise dataset (exercise.csv), originally sourced from Kaggle.