[R] Hello R user!

bibek sharma mbhpathak at gmail.com
Tue Dec 17 18:33:30 CET 2013


Hello R user,

I have created two plots (attached!) using the codes below
and would like to merge these figures in one. any suggestions are highly
appreciated!
Thanks,

plot(graph1$yod,graph1$xod,data=graph1)
dfx = data.frame(ev1=graph1$xod, ev2=graph1$yod, ev3=abs(graph1$dif))
symbols(x=dfx$ev1, y=dfx$ev2, circles=dfx$ev3,inches=1/8, ann=F,
bg="black", fg=NULL,xlim=c(-35,35),ylim=c(-35,35))
abline(h=0,v=0)

plot(graph2$yod,graph2$xod,data=graph2)
dfx = data.frame(ev1=graph2$xod, ev2=graph2$yod, ev3=abs(graph2$dif))
lines(symbols(x=dfx$ev1, y=dfx$ev2, circles=dfx$ev3,inches=1/8, ann=F,
bg="blue", fg=NULL,xlim=c(-35,35),ylim=c(-35,35)))
abline(h=0,v=0)

Best,
Bibek


More information about the R-help mailing list