similar to: Getting graphs into LaTeX

Displaying 20 results from an estimated 2000 matches similar to: "Getting graphs into LaTeX"

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
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
2000 Dec 06
1
Landscape problems with ps2pdf [summary]
Since I sent my original question last week, this is one of two suggestions that worked. Using Adobe Acrobat, as suggested by Professor Ripley, was very satisfactory, but required that I use multiple platforms to make the conversion to PDF (from Linux to Windows). The solution by Peter Adorjan (included below), also worked very well, and can be carried out on any platform using tools available
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,
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,
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
2005 Aug 23
5
TCITex and R
Several times my packages have fallen foul of the latex check at the uploading-to-CRAN stage, creating extra work for Kurt Hornik. I've never bothered trying to get latex working on my own packages (happy with vanilla help) but am told that "latex is the closest thing to a syntax checker for Rd files" and that I should set it up. Now, there is already a latex on my (Windows XP)
2007 Jun 21
2
Need Help: User Defined R Functions in Sweave/Latex
Dear all, I want to start my post by expressing my sincere gratitude for all the help this group has given me in Sweave/Latex/R. The tools are excellent and so is the community! On to the question. My Sweave code is intended to make lots of plots and create a *.pdf document. Sweave is perfect for this. The only problem is that I find myself using the same R code, within my Sweave input file
2002 Nov 08
1
pdf() and pdflatex
I am having good success in using pdf() to produce pdf graphics files for inclusion in documents processed by pdflatex [I'm using R 1.6.0 on Linux]. I am having one small problem consistently though, which I believe I also had with S-Plus's pdf.graph(): wasted space at the top of the graph which causes pdflatex to put the graph on a later page, when the current page has plenty of space.
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
2004 Sep 29
2
lattice .ps graphic is rotated in LaTeX slides
I've generated a version of the classic dotplot of the barley data with library(lattice) data(barley) trellis.device("postscript", color=TRUE, file="barley2x3.ps") old.settings <- trellis.par.get() trellis.par.set("background", list(col = "white")) lset(list(superpose.symbol=list(pch=c(19, 1, 25, 2, 15, 22, 23),
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
2012 May 14
1
Vignette problem
I'm having a problem rebuilding a package, new to me in R 2.15.0 (Linux) It hits all that contain the line \usepackage[pdftex]{graphics} and leads to the following when running R CMD check on the directory. (I do this often; a final run on the tar.gz file will happen before submission.) Since I float and resize my figures, removing the line is fatal in other ways.
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
2001 Jun 01
4
multiple lattice-pages (development package!)...
One Question: if I make a lattice-plot (beware: under development!) with a special layout e.g. c(2,2,4): p1 <- xyplot(y~x|id,data=data,layout=c(2,2,3)) is there a way to print.trellis e.g. the second page of the trellis object "p1"? print.trellis(p1,page=2) #!wrong! I want this to automatically dev.print the pages (no, I don't want multiple postscript pages). If this
2004 Feb 01
1
error in building R-1.9.0 sources under Win32
I am trying to compile the R-dev sources on WinXP using mingw 3.1.0-1 and fpTeX 0.7. In the past I have been able to build the sources fine but now I receive an error in the process that I havent seen reported on the list before. Everything works fine until I get to 'make docs'. I now get the message below while building the R-admin manual (refman.pdf builds fine) and the make process
2001 Aug 15
2
RegExp Question
I have to admit that I'm a bit ignorant about regular expressions...I have a problem with "gsub": under unix I can : > cat tmp.txt F.123 F.123 F123 F123 sed 's/F\./d/g' tmp.txt d123 d123 F123 F123 that is: replacing "F.", however under R: gsub("F\.","d",c("F123","F.123"),extended=F) [1] "d23"
2001 Jul 06
9
a < b < c is alway TRUE
One of our students did something like: x[a < b < c] instead of x[a < b & b < c] But why is 3 < 2 < 1 # [1] TRUE ??? Is there any reason? Or wouldn't it be better to get a warning / error? Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
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:
2001 Jun 06
1
lattice (!under development!) font curiosity
Perhaps this might be a font problem, it might be that my font dirs are broken (but I don't think so, it is a standard potato inst.): > xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=2)) ...displays German special characters false (as greek letters). Curiously these work o.k.: > xyplot(rnorm(10) ~ rnorm(10) ,main="?dsa") > xyplot(rnorm(10) ~ rnorm(10)