saving . . . saved assignment question 2 has been deleted. assignment question 2 has been hidden .
assignment question 2
Title
Question
While solving the assignment in the second question its been asked to plot a scatter plot of imdb_rating and imdb_num_votes.
 I did typed 
plot(x = movies$imdb_rating,
     y = movies$imbd_num_votes,
     main = "IMBD rating vs imbd num votes",
     ylab = "imbd num votes",
     xlab = "IMBD rating",
     ylim = c(0,100000),
     xlim = c(0,10),
     col = "red")
 I am not getting the scatter plot instead i am getting a straight dotted line across the x-axis. 
 Could you please help.


R Plotting-Bar-Charts-and-Scatter-Plot 09-10 min 0-10 sec 06-08-20, 11:50 a.m. ASHABAREE

Answers:

It seems that the two variables are not well correlated, as shown below:

> cor(movies$imdb_rating, movies$imdb_num_votes)
[1] 0.3276467
07-08-20, 11:32 p.m. sudhakarst
Yes sir, But I am getting an straight dotted line while the video shows an almost straight line but not completely the straight.
10-08-20, 8:07 p.m. ASHABAREE
In the tutorial, we have plotted imdb_rating versus audience_score. You might have observed that these two parameters are highly coorelated, as shown below:

> cor(movies$imdb_rating, movies$audience_score)
[1] 0.8651485


12-08-20, 2:23 a.m. sudhakarst

Login to add comment


Log-in to answer to this question.