Is it possible to plot rational functions in R? For example:

curve(((x+2)*(x-5))/((x-3)*(x+1)), from=-8,to=9) gives plots that are incorrect
probably because the function cannot be deinfed at x=-1 and x=4
Thanks a lot
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
R seems to handle even the asymptotic explosions fairly gracefully:
To handle the case of discontinuity, increase
nand replace ‘y’ with NA above a threshold.