[R] Sweave: side by side dynamic graphs

From: Felipe Carrillo <mazatlanmexico_at_yahoo.com>
Date: Sun, 02 Nov 2008 20:28:29 -0800 (PST)

Hi all:
I'm trying to create some side by side dynamic graphics on the same page but I am running into some problems. I am able to create side by side figures only if I import them into my PDF. see the example bellow:

\usepackage{color,cite,graphicx}% to put in axodraw

%Import two figures side by side. Please Replace the 'bar' picture with any % jpeg picture to make this example reproducible.

% I would like to create two dynamic graphics here side by side %but isn't working.
<<fig.R,echo=F,fig=T,width=2.5,height=2.5>>= plot(1:10}
\caption{This is the first graph}

<<fig.R,echo=F,fig=T,width=3,height=3>>= plot(1:15)
\caption{This is the second graph}

Thanks for your help

Felipe D. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish & Wildlife Service
California, USA

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. Received on Mon 03 Nov 2008 - 04:31:57 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 03 Nov 2008 - 08:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive