search for: graphicx

Displaying 20 results from an estimated 76 matches for "graphicx".

Did you mean: graphics
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) postscr...
2007 Oct 07
5
how to use \Sexpr{} with sweave
I'm trying to learn Sweave. So far things are going well with the chunks of code identified by << >>= But I'm having trouble with the in-line text use of \Sexpr. Here is a short example .Rnw file: \documentclass[12pt]{article} \usepackage[margin=1.25in]{geometry} \usepackage{graphicx} \usepackage{Sweave} \begin{document} <<test>>= pnorm(1) @ \Sexpr{2+6} \end{document} The .tex file that it yields contains \Sexpr{2+6} as its next-to-last line. \usepackage{Sweave} is in its preamble. When I pdflatex that file, the resulting pdf file shows the proper value of...
2010 Feb 24
4
R Graphics into Latex‏
Hi, I'm new in Latex and I'm trying to include an R chart into a Latex document. This is what I'm doing: 1) In R: save the chart as a a Postcript in a folder C:/xxx/Density.eps 2) In Latex (using TexWorks on windows xp) : In the preambule: \documentclass[11pt]{article} \usepackage{graphicx} \begin{document} blah..blah…blah \begin{figure} \centering \includegraphics{C:/xxx/Density.eps} \label{fig:Density} \end{figure} --This is the Error Message I'm getting: LaTeX Warning: File `R:/MarsTH/Studies/Misc/LIA QA/R/Density.eps' not found on input line 26. ! LaTeX Error: Unkno...
2005 Oct 31
2
Sweave (R?) font encoding problems
...PER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C" R> localeToCharset() [1] "ISO8859-1" Here is a small example trying to replicate my problems: File:exp.Rnw ================================ \documentclass[10pt,twoside]{article} \usepackage[dvips]{graphicx} \usepackage[portuges]{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \begin{document} \section{Introdu????o} Isto ?? uma experi??ncia. \begin{figure}[b] \centering <<echo=false,fig=true,width=10,height=10>>= barras(1) @ \caption{Distribui????o dos valores percentuais...
2012 Nov 01
1
How to nicely display R code with the LaTeX package 'listings'?
...to-format-R-code-in-LaTex-documents-td816055.html Any suggestions, comments, or improvements are welcome. Cheers, Marius ### Version 1 ################################################################## \documentclass{scrartcl} \usepackage[T1]{fontenc} \usepackage[american]{babel} \usepackage{graphicx} \usepackage{fancyvrb} \usepackage{listings} \lstset{% setup listings language=R,% set programming language basicstyle=\small,% basic font style keywordstyle=\bfseries,% keyword style commentstyle=\ttfamily\itshape,% comment style numbers=left,% display line numbers on the left side n...
2004 Mar 11
1
Difficulties in interaction between R and latex (prosper)
...pecial", family = "ComputerModern") plot(x, sin(x), type="l") I fed this into a simplest-possible tex file, named sl_demo.tex, which uses prosper: \documentclass[pdf,serpaggi,slideColor,colorBG]{prosper} \usepackage[latin1]{inputenc} \usepackage{graphicx} \begin{document} \begin{slide}{Demo} \includegraphics[width=\linewidth]{cm_test.eps} \end{slide} \begin{slide}{This one works} \includegraphics[width=\linewidth]{thisworks.eps} \end{slide} \end{document} The file cm_test.eps is produced using R. I left a fi...
2009 Jan 20
2
Sweave: conflict between setwd and \SweaveOpts{prefix.string=}
...nd not in File1 where the .Rnw file is and as is said in Sweave Manual A10. Hence Latex get really confused and does not work anymore: the command \includegraphics looks for folder "graphics" in the usual File1 but those can have been stored in File2. I tried to add some: \usepackage{graphicx} \graphicspath{{../File2/graphics/}} but resulot was not so convincing Is there anyway to avoid this? Thanks!
2005 Jan 14
2
Questions on Inserting R graphs in latex!
...some clues? In R, I did > plot(sin(1:10), pch="+") > dev.print(device=postscript, "C:\\myFigure.eps",onefile=FALSE, horizontal=FALSE, paper="special") In latex, I did (myFigure.eps is in the same folder as my latex file) \documentclass{slides} \usepackage{graphicx} \begin{document} It can be seen in Figure \ref{fig:myFigure}. \begin{figure} \begin{center} \includegraphics[scale=0.9]{myFigure} \end{center} \caption{test statement} \label{fig:myFigure} \end{figure} \end{document} I got th following errors w...
2010 Feb 11
1
Sweave, lty = 3 line incorect in pdf output
...here at the correct line width. Here is a short example, using the Stex convention for Sweave. I saved the quartz window in a file called quartzSave.pdf after running the document through Sweave a first time without the \includegraphics{quartzSave} line. \documentclass[10pt]{article} \usepackage{graphicx} \begin{document} Test of lty = 3 argument. \begin{Scode}{fig=TRUE,eps=FALSE} x <- 1:10 plot(x, type = "l", lty = 3, lwd = 3) lines(x, 0.5 * x, type = "l") \end{Scode} Saved from Quartz window: \includegraphics{quartzSave} \end{document} I have attached the pdf create...
2012 Jul 04
1
Suggestion / patch to support more Unicode characters in R CMD Rd2pdf
..._encoding(outputEncoding) setEncoding <- paste("\\usepackage[", - latex_canonical_encoding(outputEncoding), "]{", + latex_outputEncoding, "]{", inputenc, "} % @SET ENCODING@", sep="") useGraphicx <- "% \\usepackage{graphicx} % @USE GRAPHICX@" writeLines(c(setEncoding, + if (inputenc == "inputenx" && + latex_outputEncoding == "utf8") { + "\\input{ix-utf8enc.dfu}" +...
2002 Dec 20
5
Getting graphs into LaTeX
...-------------------------------------------------- But when I try to include it within a LaTeX document, I get the following complaint. LaTeX document (trix.tex): ------------------------------------------------------------------------------------ \documentclass[11pt]{article} \usepackage[pdftex]{graphicx,color} \begin{document} \includegraphics{lecture00-graph-01.eps} \end{document} ------------------------------------------------------------------------------------ Which I try to compile with the command: pdflatex trix.tex But then, I get this error: ---------------------------------------------...
2008 Mar 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl, I'm using something like: ----------------------- tex.tex --------------------------- \documentclass{article} \usepackage{graphicx} \usepackage{fancyvrb} \newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}} \newcommand{\myinput}[1] {\begin{scriptsize} \VerbatimInput[frame=single,label=#1]{#1} \end{scriptsize}} \title{The R logo, \Rlogo, in \LaTeX} \author{J.R. Lobry} \begin{document} \m...
2008 Mar 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl, I'm using something like: ----------------------- tex.tex --------------------------- \documentclass{article} \usepackage{graphicx} \usepackage{fancyvrb} \newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}} \newcommand{\myinput}[1] {\begin{scriptsize} \VerbatimInput[frame=single,label=#1]{#1} \end{scriptsize}} \title{The R logo, \Rlogo, in \LaTeX} \author{J.R. Lobry} \begin{document} \m...
2008 Mar 07
0
[PATCH 3/3] doc - Remove unused/obsolete LaTeX features
...n Blank <waldi@debian.org> diff -r 968faff41008 -r 5fb1c83d7ec8 docs/src/interface.tex --- a/docs/src/interface.tex Fri Mar 07 11:46:48 2008 +0100 +++ b/docs/src/interface.tex Fri Mar 07 11:51:18 2008 +0100 @@ -1,6 +1,6 @@ -\documentclass[11pt,twoside,final,openright]{report} -\usepackage{a4,graphicx,html,setspace,times} -\usepackage{comment,parskip} +\documentclass[11pt,twoside,final,openright,a4paper]{report} +\usepackage{graphicx,html,setspace,times} +\usepackage{parskip} \setstretch{1.15} % LIBRARY FUNCTIONS -- Killing is stupid; useless! -- McCoy, "A Private Little War", s...
2010 May 22
1
Lattice Wireframe Plot into LaTex
Dear R/LaTex user, I'm simply trying to include a plot created with the Lattice wireframe function into LaTex. I have no problems including other R plots into LaTex by exporting as a Postcript and then including the graph in LaTex using \begin{figure} % Requires \usepackage{graphicx} \includegraphics[width=]{mygraph.eps}\\ \caption{}\label{} \end{figure} However, for some reason when I do this with a wireframe plot I can see the plot area in LaTex but not the plot itself. I've search for this exhaustively on the web but couldn't find an answer. I'll appreciat...
2012 Apr 04
3
Rgui maintains open file handles after Sweave error
...en} \newboolean{Sweave at gin} \setboolean{Sweave at gin}{true} \newboolean{Sweave at ae} \setboolean{Sweave at ae}{true} \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{Sinpu...
2002 Feb 07
12
R graphs in LaTeX documents?
I have tried to find a neat way to include graphs from R in LaTeX documents, but have not succeeded (I work with a WinEdt/MikTeX combination). The two roads I have stumbled along so far are the following: *Generate postscript files and convert them into EPS files by means of GhostScript or other not so straightforward tools. *Generate pictex files and include these. None of these solutions have
2010 Jun 29
1
Sweave, xtable plus/minus sign
Dear R-users, please consider the following minimal example: \documentclass[a4paper,titlepage,onecolumn,12pt]{article} \usepackage[italian]{babel} \usepackage{amssymb} \usepackage[utf8x]{inputenc} \usepackage[pdftex]{graphicx} \begin{document} <<label=test, echo=FALSE, results=tex>>= df.data1 <- cbind.data.frame(A = rnorm(18), B =factor(rep(LETTERS[1:6], each=3))) myMean <- tapply(df.data1$A, df.data1$B, FUN = mean) mySD <- tapply(df.data1$A, df.data1$B, FUN = sd) foo <- mat...
2010 Dec 23
1
Running sweave automatically using cygwin
...please help me? Below you find my Rnw code and the data for running sweave. Best regards, Raquel ======================================== Rnw file \documentclass[12pt,oneside,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage[brazil]{babel} \usepackage{amsthm,amsfonts,bm} \usepackage{graphicx} \usepackage[T1]{fontenc} \usepackage{ae} \usepackage[alf,bibjustif,recuo=1cm]{abntcite} %bibliografia da ABNT \usepackage{setspace} \usepackage[charter]{mathdesign} \usepackage{graphicx} \usepackage{Sweave} \bibliographystyle{abnt-alf} \onehalfspacing \setlength\parskip{0.5cm} % espa?amento e...
2005 Sep 16
1
setkeys and Sweave
...u would like your figure to be scaled to the width of the line. Then you could specify the following: \setkeys{Gin}{width=\linewidth} The first argument Gin of the \setkeys command refers to the \includegraphics command. The result will be that all images include with this command (when the graphicx is loaded) will be set to the desired width inside the current group or environment. In the similar way one could specify any of the possible arguments of the \rotatebox command by using the Grot specifier, e.g., \setkeys{Grot}{origin=tc} --- Question: Which variants of \setkeys are there?...