similar to: R graphs in LaTeX documents?

Displaying 20 results from an estimated 9000 matches similar to: "R graphs in LaTeX documents?"

2005 Jan 14
2
Questions on Inserting R graphs in latex!
Hi, I try to insert R graphs into a latex file and I am using a Texniccenter/MikTex combination in my Windows XP. Here are the errors I got. Could someone give me 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
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
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
2001 Dec 07
2
Latex Question
Here is how to print graphs for inclusion in Latex. First make sure you've got the graph you want. Do this by repeating and editing the command to make the graph, in the usual way. (Yes, I know Miktex is good, but it isn't as good as Emacs with ESS, although I admit that I could never configure Emacs properly on Windows - which was reason #23.5 for giving up Windows.) Second, say
2002 Dec 20
5
Getting graphs into LaTeX
Hello ALL: I ran with success the following commands in R getting a file saved ------------------------------------------------------------------------------------ postscript() postscript('~/data/st202/2003/lecture00/lecture00-graph-01.eps', horizontal = FALSE, height = 6, pointsize = 10) hist(trial.outcome.5, breaks = 5, main = '1000 Replications of 5 Trials of a
2002 Jan 31
2
Add item to scale?
Hi, many thanks for all suggestions as to shading of areas. Now to another small detail: how do I add items to the x-axis? Given a plot of "dnorm", I'd like to add some text to the x-axis, preferably with a corresponding tick mark. Imagine the typical \lambda demarcating a tail area. So far, I've only been able to add text in the plot region, not in the one of the axes.
2004 Mar 11
1
Difficulties in interaction between R and latex (prosper)
Hello, folks! I'm trying to use R as a graphics program, to make some pretty graphs that will go into prosper slideshows. I wrote this fragment, from the R manual, into a file demo.R: x=seq(-3,3,0.1) postscript("cm_test.eps", width = 4.0, height = 3.0, horizontal = FALSE, onefile = FALSE, paper = "special", family =
2002 Jan 30
2
Shade area under curve?
Hi all, I've got this graphics question which really should be easy. I want to shade an area between bounds under a curve. A suitable beginning seems to be the following: > plot(dnorm,-4,4) > segments(-4,0,4,0) > segments(-2,0,-2,dnorm(-2)) > segments(2,0,2,dnorm(2)) It is the area between -2 and 2 which I want to shade (or something similar). Hints anyone? Robert
2001 Aug 02
4
pictex driver and bargraph shading
I'm trying to use the pictex driver for bargraphs, and the shading isn't showing up. Is there any way to get some sort of shading in the plots? A hatch or stipple would be fine, too; just some way to differentiate the bars. The postscript driver won't do, since I'm trying to embed this in a LaTeX document which I'll use pdflatex on and \includegraphics for pdftex doesn't
2010 Feb 22
2
(Somewhat) broken EPS files produced
Hello. I'm writing some simple text using sweave, and faced a strange problem with eps files produced for my plots (one example attached). Individual eps files are interpreted by ghostscript just fine, and show up without errors. But once I try to include them into main LaTeX/Sweave document (using regular \includegraphics, produced by Sweave), ghostscript gives me this error on those files:
2005 Aug 05
3
Latex error with Sweave example
I created a tex file following the example in the Sweave help which produced the following files in my working directory. Sweave-test-1-006.eps Sweave-test-1-006.pdf Sweave-test-1-007.eps Sweave-test-1-007.pdf Sweave-test-1.tex When I run latex on this, I get a latex error, log file below. I am running R 2.1.1 on Windows XP. I have installed "small MiKTeX" and I have added
2006 Nov 23
2
Sweave question
I try Sweave and get Sweave-test-1.tex but hot to run LaTeX on 'Sweave-test-1.tex'? I am using WinEdt. thanks, Aimin > Sweave(testfile) Writing to file Sweave-test-1.tex Processing code chunks ... 1 : print term verbatim 2 : term hide 3 : echo print term verbatim 4 : term verbatim 5 : echo term verbatim 6 : echo term verbatim eps pdf 7 : echo term verbatim eps pdf
2006 Sep 11
3
wireplot margins and additional z-axis
Dear R experts, it would be very kind if you could help me with two wireplot problems. First, when I make a wireplot and transform it into an .eps using the postscript function the eps-file leaves always a lot of space below the plot, as if it would leave space for a legend or something like that. How can i get the plot into the bottom corner without the space below? The space is not there when
2006 Oct 04
5
R Graphics: Saving PDF and other formats from Windows Graphic Device for LaTeX
Hello, I can't seem to save (or find the default location) when I use the Window Graphic Device's pull down menu. It does not seem to save to the directory I have set using "setwd(...)". How do I make the pull down menu's work? What is the best format to save R graphics for inclusion into a LaTeX documents? I will use PdfTex, or LaTeX -> PS -> PsToPdf to generate the
2002 Feb 28
3
R-plots with 'complex' axis-labelling
Hi there, I want to create plots with some kind of 'complex' axis labelling of the form $\dot{V}$ and integrate those plots into a LaTeX document. What is the best way to go? I've figured out, that the 'plotmath' commands are somewhat limited (at least I wasn't able to get the $\dot{V}$ generated) and that plots with 'plotmath'-axes wouldn't export
2005 Apr 26
2
postscript (eps) / latex / par(mfg=...) / problem!
The same problem I am having has been reported here http://tolstoy.newcastle.edu.au/R/devel/04a/0344.html Namely that using par(mfg=...) with a postscript (eps) for inclusion with latex makes the figure appear upside down and back to front (flipped)! Converting the dvi to ps makes matters worse (the eps seems to be broken), however, it appears fine with gv. Here is (basically) the code I am
2005 Apr 26
2
postscript (eps) / latex / par(mfg=...) / problem!
The same problem I am having has been reported here http://tolstoy.newcastle.edu.au/R/devel/04a/0344.html Namely that using par(mfg=...) with a postscript (eps) for inclusion with latex makes the figure appear upside down and back to front (flipped)! Converting the dvi to ps makes matters worse (the eps seems to be broken), however, it appears fine with gv. Here is (basically) the code I am
2006 Dec 10
3
R and LaTeX
Hi all, I have started using LaTeX for writing papers and I have heard that R works well with LaTeX. I'm specifically interested in how I can have LaTeX read in R generated graphics - for example graphs formed by matplot, or other such processes. Does anyone out there use LaTeX and can point me in the right direction? Thanks David --
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
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