[R] Hello R user!

Christopher W Ryan cryan at binghamton.edu
Tue Dec 17 18:47:57 CET 2013


What do you mean by "merge" them into one?  Make both graphs appear on
the same page of a document? Make a single figure containing both
graphs?  Plot data from both dataframes on the same set of axes?

--Chris Ryan

On Tue, Dec 17, 2013 at 12:33 PM, bibek sharma <mbhpathak at gmail.com> wrote:
> 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
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list