How to separate two plots in R?

Viewed 41699

Whenever I run this code , the first plot would simply overwrite the previous one. Isnt there a way in R to separate to get two plots ?

plot(pc)
title(main='abc',xlab='xx',ylab='yy')

plot(pcs)
title(main='sdf',xlab='sdf',ylab='xcv')
6 Answers

You could also try the layout command:

Try layout(1:2)

plot(A)    
plot(B)
Related