Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

homework 6

10 views
Skip to first unread message

Dilem Avşar

unread,
Apr 11, 2021, 4:55:15 PM4/11/21
to iu-...@googlegroups.com
Hello everyone, I am trying to check if my code is true for the first question but I can not plot the graph because I keep getting this error massage "plot.new has not been called yet" Did anyone get the same error? 

Andrés Aravena

unread,
Apr 11, 2021, 5:01:53 PM4/11/21
to IU Computing in Molecular Biology
On Sunday, April 11, 2021 at 11:55:15 PM UTC+3 d.il...@gmail.com wrote:
Hello everyone, I am trying to check if my code is true for the first question but I can not plot the graph because I keep getting this error massage "plot.new has not been called yet" Did anyone get the same error? 

maybe your code is true, but it is not correct. True≠correct.
that error message means that you are using "points" or "lines" or something like that, that you can only use after using "plot" first 

Dilem Avşar

unread,
Apr 11, 2021, 5:09:13 PM4/11/21
to iu-...@googlegroups.com
yes sir it is the code that already exists in homework to check the answer and yes i get the error message when it comes to "lines(town&rats, lty=2)"

--
You received this message because you are subscribed to the Google Groups "IU Computing in Molecular Biology" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iu-cmb+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iu-cmb/4c29adf7-2b6b-452a-b77a-5e55d51f623dn%40googlegroups.com.

Andrés Aravena

unread,
Apr 12, 2021, 1:52:03 AM4/12/21
to IU Computing in Molecular Biology
The complete code says

plot(town$cats, xlab="Days", ylab="Population", type="l")
lines(town$rats, lty=2)

it should work if you do both commands together. If it still does not work, we need to see your computer (zoom?)

Dilem Avşar

unread,
Apr 12, 2021, 2:23:46 PM4/12/21
to iu-...@googlegroups.com
So I found that my code was incorrect. Thank you.

--
You received this message because you are subscribed to the Google Groups "IU Computing in Molecular Biology" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iu-cmb+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages