From: Jeff Hamann <jeff.hamann_at_forestinformatics.com>

Date: Mon, 03 Nov 2008 18:55:05 -0800

\caption{\label{figure:onecolfig}

A normal figure only occupies one column.}

\end{figure}

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 Tue 04 Nov 2008 - 03:03:52 GMT

Date: Mon, 03 Nov 2008 18:55:05 -0800

I'm sorry for having to post this, but I can't seem to find any
solutions to this, which seems pretty simple, but then again...

I've started playing with the example r news project and wanted to start adding some graphs, but replacing:

*\begin{figure}
*

\vspace*{.1in}

\framebox[\textwidth]{\hfill \raisebox{-.45in}{\rule{0in}{1in}}

A graph goes here \hfill}

\caption{\label{figure:onecolfig}

A normal figure only occupies one column.}

\end{figure}

yields a an empty box, which is good, with the following:

\begin{figure}

\vspace*{.1in}

<<fig=true,echo=false>>=

plot( rnorm( 100 ) )

@

*\caption{A normal figure only occupies one column.}
*

\label{figure:onecolfig}

\end{figure}

which isn't good, or at least yields a "normal sized" graph that starts in the second column, when I run Sweave( "yourarticle.rnw" ) and the pdflatex wrapper

Is it possible, to get a "small" graphic this way, or should I write out a temp graph as a pdf and include the graphic by constructing the statement using Sweave?

Thanks for any advice,

Jeff.

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 Tue 04 Nov 2008 - 03:03:52 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 Tue 04 Nov 2008 - 11: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.
*