OK I got it to output latex using the package xtable but how do we print out to jpeg or png?

Thanks again


"my_frame <- read.table(file="table", header=TRUE, sep="\t");
 print(design.table, type="latex")"

'% latex table generated in R 2.11.0 by xtable 1.5-6 package
% Mon Jun  7 16:03:59 2010
\begin{table}[ht]
\begin{center}
\begin{tabular}{rlrr}
  \hline
 & Age & poor & near.poor \\ 
  \hline
1 & 65-69 &   8 &   4 \\ 
  2 & 70-74 &  10 &   6 \\ 
  3 & 75-79 &  11 &   7 \\ 
  4 & 80-84 &  12 &   8 \\ 
  5 & $>$85 &  14 &  12 \\ 
   \hline
\end{tabular}
\end{center}
\end{table}





________________________________
From: Sean Davis <sdavis2@mail.nih.gov>

Cc: bioconductor@stat.math.ethz.ch
Sent: Mon, June 7, 2010 2:08:57 PM
Subject: Re: [BioC] Publication Quality Table in R






>Thanks for the pointer Sean
>
>>Looks like xtable is the way to go but from reading the documentation and the articles online it doesnt provide a clear example in my eyes how would one convert from an input file like below into a table figure(jpeg or png) for publication.
>
>>Thanks again for everyones help.\
>
>
>

Hi, David.  Sounds like you will need to read a little on R usage.  A great starting place is here:

http://manuals.bioinformatics.ucr.edu/home/R_BioCondManual
 

>
>>Input File: tab separated:
>>Age    poor     near poor
>>65-69    8    4
>>70-74    10    6
>>75-79    11    7
>>80-84    12    8
>>>85    14    12
>
>
>

See the help for read.table.  If this is a one-off thing, loading into excel and exporting as html might also work.

Sean

 
>
>________________________________
>>From: Sean Davis <sdavis2@mail.nih.gov>
>
>>Cc: bioconductor@stat.math.ethz.ch
>>Sent: Mon, June 7, 2010 1:01:27 PM
>>Subject: Re: [BioC] Publication Quality Table in R
>
>
>
>
>
>
>
>
>>>>How do I generate a simple table similar to the following link in R
>>>
>>>http://www.fedstats.gov/policy/publications/wp1fig1_text.html
>>>>Table 1 Poverty status, by age, 2000
>>>
>>>>Does anyone know the exact commands? Apologizies for the newbie question .
>>>
>
>>See the xtable package, for instance?
>
>>Sean
>
>
>
>
       [[alternative HTML version deleted]]
>
>>_______________________________________________
>>Bioconductor mailing list
>Bioconductor@stat.math.ethz.ch
>https://stat.ethz.ch/mailman/listinfo/bioconductor
>>Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
>



      
	[[alternative HTML version deleted]]

