I have two dataset (each has two columns of data). I want to use R to xyplot both dataset into one figure, while one is in point form, one is in smooth line format.
Could you mind to teach me how to do so? thanks.
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.
You have several options:
1) Use
plotwith the “o” (overplot) type2) In general, as @Milktrader said, you can call plot twice with
new=TRUE, for instance:3) Use
points4) Split the screen with
split.screenorlayoutAnd there are surely many others…