\HeaderA{journalpng}{Produce a device for producing artwork for presentations and journals}{journalpng}
\aliasA{screenpng}{journalpng}{screenpng}
\keyword{misc}{journalpng}
\begin{Description}\relax
journalpng generates a device to print a 4 x 4 inch 300 dpi figure (by default).
screenpng does the same, but 72dpi.
\end{Description}
\begin{Usage}
\begin{verbatim}
journalpng(file="figure.png",width=4, height=4,res=300)
screenpng(file="figure.png",width=4, height=4,res=72)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{file}] the file to write the figure to 
\item[\code{width}] the width of the figure 
\item[\code{height}] its height 
\item[\code{res}] resolution in dots-per-inch 
\end{ldescription}
\end{Arguments}
\begin{Value}
A table containing annotation data
\end{Value}
\begin{Author}\relax
Crispin J Miller
\end{Author}
\begin{References}\relax
http://bioinformatics.picr.man.ac.uk/
\end{References}
\begin{Examples}
\begin{ExampleCode}
   ## Not run: 
     journalpng(file="results/figure1.png"); # starts a new device
     trad.scatter.plot(exprs(eset)[,1],exprs(eset)[,2])
     dev.off();    # writes the file at this point.
  
## End(Not run)
\end{ExampleCode}
\end{Examples}


