0

My data plot is called cba first is the instructions and here is my code. I am struggling with Problem 3 Part B Instructions

#PART A 
clean_df = subset(df, !is.na(cba$SAT_math))  
#PART B  
plot(clean_df,cba$SAT_verbal, xlab="Math SAT Score", main="Relationship Between Math and Verbal SAT Scores", ylab= "Verbal SAT Score")

Error in plot.default(...): formal argument "xlab" matched by multiple actual arguments

UseR10085
  • 7,120
  • 3
  • 24
  • 54
Hannah
  • 9
  • 6
  • Provide the data in `dput()` format. Do not put your codes as images. Visit [How to make a great R reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). – UseR10085 Sep 18 '20 at 02:55
  • ```{r} #PART A clean_df = subset(df, !is.na(cba$SAT_math)) ``` ```{r} #PART B plot(clean_df,cba$SAT_verbal, xlab="Math SAT Score", main="Relationship Between Math and Verbal SAT Scores", ylab= "Verbal SAT Score") ``` – Hannah Sep 18 '20 at 02:55
  • This time I have helped you out by editing the question. Please edit your question by providing the data in `dput()` format. – UseR10085 Sep 18 '20 at 02:59
  • it won't let me because the data is too big – Hannah Sep 18 '20 at 03:02
  • I am using your code with `iris` data like `plot(iris$Petal.Length,iris$Sepal.Length, xlab="Math SAT Score", main="Relationship Between Math and Verbal SAT Scores", ylab= "Verbal SAT Score")` and it is working fine. Show the output of `str(clean_df)`. – UseR10085 Sep 18 '20 at 03:04
  • You're doing `plot(x=clean_df, y=cba$SAT_verbal)` which probably doesn't make much sense. Read help page by typing `?plot`. – jay.sf Sep 18 '20 at 07:14

0 Answers0