search for: includegraph

Displaying 20 results from an estimated 129 matches for "includegraph".

Did you mean: include_graph
2010 Jun 10
1
Sweave cutting new lines
...frontfile",sec,"x",lambda,"x",chartvalue,"x",relsec,".pdf",sep="") pdf(file=file,paper="special",width=14,height=6) correl.plotsinglechart(sec,lambda,chartvalue,relsec) tmp<-dev.off() cat("\\includegraphics{",file,"}\n\n",sep="") } } chartvalue<-"rsq" relsec<-0 file<-paste("working/frontfile",sec,"x",lambda,"x",chartvalue,"x",relsec,".pdf",sep="") pdf(file=file,paper="special",widt...
2011 Mar 08
4
beamer overlays with Sweave?
...Rnw file: <<plot1,fig=TRUE>>= [stuff] @ <<plot2,fig=TRUE>>= [stuff] @ <<plot3,fig=TRUE>>= [stuff] @ These three blocks create three figures that I want to have appear as a series of overlays in the final PDF file. Sweave outputs the following LaTeX code: \includegraphics{plot1} \includegraphics{plot2} \includegraphics{plot3} and I need to turn it into \only<1>{\includegraphics{plot1}} \only<2>{\includegraphics{plot2}} \only<3>{\includegraphics{plot3}} I have few enough of these that I've been modifying them by hand (couldn't easi...
2003 Jul 29
1
Sweave: pass scale parameter to includegraphics?
...file test.Snw, I may have: % LaTeX stuff \begin{figure} <<fig=true,width=5,height=5>>= x1 <- seq(1,5, length=10) x2 <- sin(x1) plot(x1,x2) @ \caption{Plot} \end{figure} % More LaTeX This produces the LaTeX file test.tex with the (example) chuck: % LaTeX stuff \begin{figure} \includegraphics{test-001} \caption{Plot} \end{figure} % More LaTeX stuff But what if I want the chunk to be, for example, \includegraphics[scale=0.6]{test-001} rather than the standard, no frills \includegraphics command? (Why? Because I create a picture that I want small! Changing width and height w...
2008 May 18
1
Figure environment and includegraphics options from Sweave
...ave is that you do not have 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 giv...
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) abline(lm(USArrests$Assaul...
2011 Aug 04
4
Sweave - landscape figure
Dear R-users I am trying to understand how Sweave works by running some simple examples. In the example I am working with there is a chunk where the R-commands related to plotting a figure are placed. When running R CMD Sweave ? , pdflatex the output is a portrait figure. I wonder whether it would be possible to change the orientation to landscape (not in the latex file but in Rnw file). Many
2007 Dec 09
1
R + LaTeX formula
Hi, what is actually the best method to include R-plots into LaTeX documents? At the moment i use postscript("myplot.eps", width = 12.0, height = 9.0, horizontal = FALSE, onefile = TRUE, paper = "special",encoding = "TeXtext.enc") plot(foo,bar) dev.off() But it is a bit unhandy to scale later and its difficult to get nice formula in the plots. And how should
2010 Feb 24
4
R Graphics into Latex‏
...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: Unknown graphics extension: .eps. See the LaTeX manual or LaTeX Companion for ex...
2004 Mar 11
1
Difficulties in interaction between R and latex (prosper)
...;) 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 file "thisworks.eps" there as a counterpoint (it was made u...
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
2011 May 11
4
How to document man/*.Rd pages with images?
...ng-R-documentation-f iles> I tried a couple of LaTeX guesses, but they lead to the following errors on check: Warning: /LAB/SRM/PROGS/R_PACKAGES/Ralign/man/Ralign139.Rd:3: unexpected UNKNOWN '\usepackage' Warning: /LAB/SRM/PROGS/R_PACKAGES/Ralign/man/Ralign139.Rd:36: unknown macro '\includegraphics' What is the right way to do this? Thanks, Sean
2007 Aug 21
4
Formatting Sweave in R-News
Hi, I am editing a document for submission to the R-news newsletter, and in my article my Sweave code inserts a dynamically generated PDF report that my R program generates. However, when I insert the PDF using the following Sweave code: \newpage \includegraphics[scale=1.0]{\Sexpr{print(location)}} \newpage (in tex this looks like): \newpage \includegraphics[scale=1.0]{/home/arjun/sample.pdf} \newpage However, the r-news style package over-rides everything that I can set (including using the minipage option) to make my included PDF small sized. Part o...
2003 Jul 23
4
.ps files in R
...tscript. I can see the file, and nothing looks odd. However, when I import it into LaTeX, it refuses to configure right side up. (It stays 90 degrees.) I've tried saving it as .eps with different options in ghostscript. I've also tried many different rotating commands in LaTeX (angle in \includegraphics, \rotate, \sideways,...) But, the picture seems to be unaffected by any of these commands. Does anyone know a trick to getting R postscript files into LaTeX? Thanks, Jo Johanna Hardin Department of Mathematics & Computer Science 610 N. College Way Pomona College Claremont, CA 91711 (909...
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: -----------------------------------------------------------------------------------...
2007 Jun 21
2
Need Help: User Defined R Functions in Sweave/Latex
...the R function: basicplot <- function(x, nplots, sectionname){ # Begin to make figure here file = paste("scatter",nplots, ".pdf", sep="") pdf(file = file,paper="special", width=6, height = 6) plot(x) dev.off() cat("\\begin{figure}\n") cat("\\includegraphics{",file,"}\n", sep="") cat("\\caption{", sectionname,"}\n", sep = "") cat("\\end{figure}\n") #End figure making } The aim is to generate Latex code which will have some basic information as part of the caption. The trouble seems to...
2011 Nov 18
0
Sweave
...x") Error in texi2dvi("Sweave-test-1.tex") : Running 'texi2dvi' on 'Sweave-test-1.tex' failed. > using R CMD texi2dvi Sweave-test-1.tex, I got: /Users/meurice/Desktop/Sweave-test-1.tex:101: LaTeX Error: File `Sweave-test-1-006' not found. So I change \includegraphics{Sweave-test-1-006} \includegraphics{Sweave-test-1-007} to \includegraphics{Sweave-test-1-006.pdf} \includegraphics{Sweave-test-1-007.pdf} Now, I get the follong error : /Users/meurice/Desktop/Sweave-test-1.tex:101: LaTeX Error: Cannot determine size of graphic in Sweave-test-1-006.pdf (no Boun...
2008 Nov 03
1
Sweave: side by side dynamic graphs
...mentclass[12pt]{article} \usepackage{color,cite,graphicx}% to put in axodraw \usepackage{latexsym,amssymb,epsf} \begin{document} %Import two figures side by side. Please Replace the 'bar' picture with any % jpeg picture to make this example reproducible. \begin{figure}[h] \centerline{\mbox{\includegraphics[width=3.00in]{bar}} \mbox{\includegraphics[width=3.00in]{bar}}} \end{figure} % I would like to create two dynamic graphics here side by side %but isn't working. \begin{figure}[h] \centering <<fig.R,echo=F,fig=T,width=2.5,height=2.5>>= plot(1:10} @ \caption{This is the first grap...
2005 Jan 14
2
Questions on Inserting R graphs in latex!
...nefile=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 while I used Ctrl+F7 to edit. ! LaTeX Error: Environment figure undefined. See the LaTeX manual or LaTeX Companion for explanation. Ty...
2010 Feb 11
1
Sweave, lty = 3 line incorect in pdf output
...window to a pdf and include it in the tex document, then the dotted line is there 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: \inc...
2006 Aug 20
1
issues with Sweave and inclusion of graphics in a document
...uot;, col="blue") # WISIWIS: What I See Is What I Save ;) savePlot("ar",type="pdf") @ \begin{figure} \begin{center} % imporantly, by saving the plot i have direct control over graphics in LaTeX, % and i can fine-tune the the graphics placement as much as i want: \includegraphics[width=14.5cm]{./ar.pdf} \caption{An AR(1) process of length~\protect\Sexpr{length(sp)} is best viewed in a wide window.} \end{center} \end{figure} \noindent Had I tried to do the following, \texttt{Sweave} would have blown up! \begin{verbatim} <<label=ar.1>>= windows(width=20,...