problems with Scatterplot

77 Views Asked by At

enter image description hereI'm trying to visualize correlation between two columns in my dataset. I tried to use plot(), scatterplot, but the result is not a readable graph. For example I used this function:

scatter.smooth(x=Lifestyles$SLEEP_HOURS, y=Lifestyles$SUFFICIENT_INCOME, main="sleep hours and Income", xlab = "Sleep hours", ylab = "income, 1,2")

About dataset. I have about 12000 observations and 20 columns. both columns are as.numeric and integer.

here I'm trying to observe number of sleep hours and how many tasks completed daily

my link to my dataset: https://www.kaggle.com/ydalat/lifestyle-and-wellbeing-data

Thank you all in advance!

0

There are 0 best solutions below