search for: textwidth

Displaying 20 results from an estimated 73 matches for "textwidth".

2010 Aug 17
3
Sweave
Dear R users, I am using Sweave. I would like to use the width option for the graphics : \begin{figure}[h!] \centering \includegraphics[width=0.7\textwidth]{x} \end{figure} How do I get this ? Thank you very much, Randall [[alternative HTML version deleted]]
2005 Sep 16
1
setkeys and Sweave
Hi there: Using \setkeys{Gin}{width=1.0\textwidth} \setkeys{Gin}{height=10cm} \setkeys{Gin}{height=0.8\textwidth} all seem to work under R-2.1.1 under sparc, solaris2.9, but \setkeys{Gin}{scale=0.3} \setkeys{Gin}{angle=90} do not work. I have not been able to find relevant information, googling on setkeys proved confusing, at best. http://cnl...
2006 Nov 30
4
R_WinEdt question
if I want to put fig1plot to the left, figYPplot to the right figYAaplot on the bottom. How to modify the following cod to do these? \begin{figure}[H] \centering \begin{minipage}[t]{0.5\textwidth} \centering <<label=fig1plot,fig=TRUE,echo=FALSE>>= <<fig1plot>> @ %\caption{Caption 1} \end{minipage} \begin{minipage}[t]{0.5\textwidth} \centering <<label=figYPplot,fig=TRUE,echo=FALSE>>= <<figYPplot>> @ %\caption{Caption 1} \end{minipage} \begin{mi...
2009 Jun 25
1
Setting default plot size in Sweave
...agues: I have used \SweaveOpts{prefix.string=plot, eps = FALSE, pdf = TRUE} \SweaveOpts{width=5, height=4} <<fig=T>>= plot(...) @ But the figure still has a width of 80% of the text width, the default set up by Sweave, which issues a LateX command in Sweave.sty of \setkeys{Gin}{.8\textwidth}. Sweave.sty has a command \ifthenelse{\boolean{Sweave at gin}}{\setkeys{Gin}{width=0.8\textwidth}}{}% but I don't know how to set some parameter 'gin' to prevent the setkeys from being executed. I would like to be able to set the default graph dimensions at the start of the docum...
2009 Aug 22
1
improving ?RweaveLatex
Dear developers Please read below. On 6/25/09, Marc Schwartz <marc_schwartz at me.com> wrote: > You can use the following *after* the \begin{document} directive: > \setkeys{Gin}{width=0.8\textwidth} > > The above is the default. Reset it to what you would like. > > Note, as per that manual page, that the Sweave options 'height' and 'width' > affect the size of the PDF and EPS files created, but it is the above > command that controls the size of the image i...
2010 Mar 29
3
Page width figures in Latex
bRotheRs & sisteRs, I am once again attempting to learn enough Latex voodoo to get something done, and failing comically. The document "RJAuthorguide.pdf" mentions that one can get page width figures through the use of the "figure*" or "table* environments, but despite considerable searching through the mail archives and reading Frank Harrell's discussion of
2002 Jan 27
5
EPS->LaTeX problem
Greetings- I have a strange problem displaying a graph from R (1.3.1, linux) in a LaTeX document of documentclass seminar. I'm using graphicx to include the file: \usepackage{graphicx} ... \resizebox{\textwidth}{\textheight}{\includegraphics{crime.eps}} When I do this, the entire slide (including the page number) is rotated 180 degrees. Any ideas why this happens? The graph was created using the syntax in R: data(USArrests) postscript(file="crime.eps") plot(USArrests$Murder, USArrests$Assault...
2008 Nov 04
3
getting "small" graphs with Sweave using Rnews.sty
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...
2011 Apr 09
1
Trouble with Sweave and Beamer
...d} \setbeamerfont*{frametitle}{size=\normalsize,series=\bfseries} \setbeamertemplate{navigation symbols}{} % Standard packages \usepackage[english]{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{Sweave} % The main document \begin{document} \setlength{\unitlength}{\textwidth} % measure in textwidths \begin{frame}[t]{Data Representation and Analysis} <<echo=TRUE>>= x <- rnorm(100) xm <- mean(x) xm @ \end{frame}
2011 Aug 17
0
Sweave and graphics
...le="datapl3.pdf",paper="a4",width=0,height=0); plot(yt,ypredr,xlab="Data",ylab="Predicted Value",ylim=c(0,3),xlim=c(0,3),main="PL 3"); #invisible(dev.off()); @ \begin{figure}[htbp] \centering{ \begin{tabular}{cc} \includegraphics[width=0.4\textwidth,height=0.3\textheight]{report-pl1} & \includegraphics[width=0.4\textwidth,height=0.3\textheight]{report-pl2} \\ (a) & (b) \end{tabular} \begin{tabular}{c} \includegraphics[width=0.4\textwidth,height=0.3\textheight]{report-pl3} \\ (c) \end{tabular} } \caption{\label{fig:pl1})} \end...
2008 May 18
1
Figure environment and includegraphics options from Sweave
...e to bother about filenames and starting and stpping the device. I want the the resulting LaTeX to look as: \begin{Schunk} \begin{Sinput} > x <- seq(-2 * pi, 2 * pi, 0.1) > plot(x, cos(x), type = "l", lwd = 4) \end{Sinput} \end{Schunk} \begin{figure} \includegraphics[width=0.6\textwidth]{xx-001} \end{figure} i.e. with options to the \includegraphics and all embedded in a figure environment. 1) Is there a way to do this without writing the figure environment manually? 2) If not, is there a way to get the generated filename of the plot, or to explicitly give it in the .rnw file?...
2006 Dec 12
1
Sweave, Xfig, pdflatex and \setkeys
...ings without the text and foo.pdftex with some LaTeX code that ensures the text lands in the right place together with the drawing. I'm supposed to \input{} this file in my LaTeX document. Trouble is that Sweave defines (with \setkeys) the default width of \includegraphics to be 0.8 times the \textwidth. The result is that the graphic is scaled, but not the text. I was looking for a way to temporarily undefine the default width of included graphics, but without success. Does anyone know how to undo a definition that has been set with \setkeys? Or does anyone has another workaround for including...
2009 Jul 13
3
SweaveListingUtils question
Hello, recently I read about the SweaveListingUtils package and now I want to try it out. However, I can not make it work... Below a minimal example. The problem seems to be the following line (generated by SweaveListingPreparations()?): \ifthenelse{\boolean{Sweave@gin}}{\setkeys{Gin}{width=0.6\textwidth}}{}% If I comment out this line, it works. What can I do about this? I am using the \begin{Scode} notation instead of Rnw files. May this be the problem? For some technical reason, I would like to stick on this notation. Any help appreciated, kind regards, Karsten. %%%% begin example \docume...
2002 Nov 13
1
Package documentation and rd.sty
Hi all, I've got a basic question regarding package documentation and rd.sty. I wrote my first own package, and now I would like to place the documentation into the appendix of another LaTex document. Seemingly I cannot simply \usepackage{Rd}, as this will modify the page-settings of my document. Is there a minimum style file which will just define the environments and commands needed for
2013 Aug 28
1
Error when using buildVignettes()
...vignette QC.pdf if (require(tools)) { buildVignettes(dir=outdir, lib.loc=NULL, quiet=FALSE, clean=FALSE); }#if }#xpsQAReport #------------------------------------------------------------------------------# The file "QC.begin.Rnw" is as follows: \documentclass{article} \textwidth=6.2in \textheight=8.5in %\parskip=.3cm \oddsidemargin=.1in \evensidemargin=.1in \headheight=-.3in \newcommand{\Rfunction}[1]{{\texttt{#1}}} \newcommand{\Rmethod}[1]{{\texttt{#1}}} \newcommand{\Rcode}[1]{{\texttt{#1}}} \newcommand{\Robject}[1]{{\texttt{#1}}} \newcommand{\Rpackage}[1]{{\textsf{#1}}}...
2003 Oct 07
1
plot width in Sweave
Hi I didn't find this in the manual: I need to change the width of a plot while I use sweave, so which command/parameters should I insert below, to change the width of a plot \begin{figure}[htbp] \begin{center} <<echo=TRUE, fig=TRUE>>= plot(Re(q),ylab ="",type="o",col="blue",lwd=1, sub=mystring) @ \caption{Original stick function (stimulus
2012 Apr 04
3
Rgui maintains open file handles after Sweave error
...DeclareOption{nogin}{\setboolean{Sweave at gin}{false}} \DeclareOption{noae}{\setboolean{Sweave at ae}{false}} \ProcessOptions \RequirePackage{graphicx,fancyvrb} \IfFileExists{upquote.sty}{\RequirePackage{upquote}}{} \ifthenelse{\boolean{Sweave at gin}}{\setkeys{Gin}{width=0.8\textwidth}}{}% \ifthenelse{\boolean{Sweave at ae}}{% \RequirePackage[T1]{fontenc} \RequirePackage{ae} }{}% \DefineVerbatimEnvironment{Sinput}{Verbatim}{fontshape=sl} \DefineVerbatimEnvironment{Soutput}{Verbatim}{} \DefineVerbatimEnvironment{Scode}{Verbatim}{fontshape=sl}...
2006 Jun 16
1
R in ConTeXt
...starttext \title{Example usage of R module} \startRhidden rm(list=ls()) x <- rnorm(100) y <- runif(100) \stopRhidden \type{x} and \type{y} are randomly generated. \startR summary(lm(y~x)) pdf("xy.pdf") plot(y~x) dev.off() \stopR \placefigure{Y vs X}{\externalfigure[xy][width=.4\textwidth]} \stoptext Regards, Johan -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell
2009 Mar 13
1
How to combine xtable and minipage with Sweave ?
...ediumqspace]{SIunits} \geometry{a4paper,left=1cm,right=1cm,top=1cm,bottom=1.5cm} \date{} \begin{document} \DefineVerbatimEnvironment{Sinput}{Verbatim}{formatcom = {\color[rgb]{0, 0, 0.56}}} \DefineVerbatimEnvironment{Soutput}{Verbatim}{formatcom = {\color[rgb]{0.56, 0, 0}}} \setkeys{Gin}{width=\textwidth} <<echo=FALSE, results=TEX>>= rg<-read.table(file="d:/RWork/rg.txt", sep=";", dec=".", header=T, as.is=T) @ \begin{figure}[ht] \begin{minipage}[b]{0.5\linewidth} \centering <<RsingleA,echo=F,fig=T,width=2.5,height=2.5>>= plot(1:10) @ \capt...
2009 Aug 07
2
xtable, sweave and resizebox
...s{echo=false} <<results=tex>>= xtable(stats0,caption='Número de transacções dos artigos frequentes e infrequentes',label='tab:INEStats') @ but the size is too big so I try <<echo=False,results=hide>>= load('stats.Rdata') library(xtable) \resizebox{\textwidth}{!}{ \SweaveOpts{echo=false} <<results=tex>>= xtable(stats0,caption='text',label='tab:Stats') @ } and it doesn t work anymore any hints? [[alternative HTML version deleted]]