Re: [R] How to combine xtable and minipage with Sweave ?

2009-03-16 Thread Ptit_Bleu
Dear Duncan, Thanks for the tips, but I haven't found a way to modify your solution so that I can include a table and not a graph (includegraphics works for graphs, I need an 'includetable', I think). I found scripts like yours explaining how to include graphs into table but this is not my case:

Re: [R] How to combine xtable and minipage with Sweave ?

2009-03-16 Thread Ptit_Bleu
Dear Duncan, Thanks for the tips, but I haven't found a way to modify your solution so that I can include a table and not a graph (includegraphics works for graphs, I need an 'includetable', I think). I found scripts like yours explaining how to include graphs into table but this is not my case:

Re: [R] How to combine xtable and minipage with Sweave ?

2009-03-16 Thread Duncan Murdoch
Ptit_Bleu wrote: Dear Duncan, Thanks for the tips, but I haven't found a way to modify your solution so that I can include a table and not a graph (includegraphics works for graphs, I need an 'includetable', I think). Sorry, I misread your request. (I saw the letters t, a, b, l, e and

[R] How to combine xtable and minipage with Sweave ?

2009-03-13 Thread Ptit_Bleu
Hello, I'm trying to put a dynamic table and a dynamic graph side by side in a pdf document using Sweave. The data.frame used to generate the table is called rg (rg.txt): Date; Code; Data1; Data2 2009-03-10;1;1958;147 2009-03-10;2;302;144 2009-03-10;3;4;141 2009-03-10;4;4;144

Re: [R] How to combine xtable and minipage with Sweave ?

2009-03-13 Thread Dieter Menne
Ptit_Bleu ptit_bleu at yahoo.fr writes: I'm trying to put a dynamic table and a dynamic graph side by side in a pdf document using Sweave. The data.frame used to generate the table is called rg (rg.txt): Date; Code; Data1; Data2 2009-03-10;1;1958;147 2009-03-10;2;302;144 ... The Sweave

Re: [R] How to combine xtable and minipage with Sweave ?

2009-03-13 Thread Ptit_Bleu
Hello Dieter, And thank you for the corrections. Concerning the point 3, I'm a bit lost. Is it a problem of place to put the table and the graph side by side (my english is quite as low as my skills in Latex) ? I tried with \begin{minipage}{0.45\textwidth} instead of 0.7 and I put //tiny but no

Re: [R] How to combine xtable and minipage with Sweave ?

2009-03-13 Thread Dieter Menne
Ptit_Bleu ptit_bleu at yahoo.fr writes: Concerning the point 3, I'm a bit lost. Is it a problem of place to put the table and the graph side by side (my english is quite as low as my skills in Latex) ? I tried with \begin{minipage}{0.45\textwidth} instead of 0.7 and I put //tiny but no

Re: [R] How to combine xtable and minipage with Sweave ?

2009-03-13 Thread Ptit_Bleu
Thanks Dieter for the link. In fact it may be a problem with R. The .tex created with R for the table put \begin{table}[ht] and \end{table}\ between \begin{minipage} and \end{minipage} (see below) If I manually change these positions, according to your link, there is no more error ... but the

Re: [R] How to combine xtable and minipage with Sweave ?

2009-03-13 Thread Duncan Murdoch
On 3/13/2009 12:07 PM, Ptit_Bleu wrote: Thanks Dieter for the link. In fact it may be a problem with R. The .tex created with R for the table put \begin{table}[ht] and \end{table}\ between \begin{minipage} and \end{minipage} (see below) If I manually change these positions, according to your

Re: [R] How to combine xtable and minipage with Sweave ?

2009-03-13 Thread Paul Johnson
On Fri, Mar 13, 2009 at 12:17 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 3/13/2009 12:07 PM, Ptit_Bleu wrote: Thanks Dieter for the link. You can use \includegraphics explicitly yourself, and avoid the automatic code generated by Sweave.  For example, testfn, fig=true,