Displaying 20 results from an estimated 1000 matches similar to: "R-beta: Latex and R"
2008 May 17
2
How to paste graph from R in Latex?
Dear R-expert,
Is it possible to save graph from R into Latex document? I?can?see save as metafile , PNG, pdf etc, but I'm not sure which one to use.
Thank ?you so much for your help.
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.
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
1998 Oct 29
3
EPS
Perhaps this has been mentioned and I wasn't paying attention. When I try to
import a postscript file (which is EPS according to the R help on postscript) my
Framemaker filter chokes. If I simply edit the first line of the file to put
%!PS-Adobe-3.0 EPSF-3.0
rather than
%!PS-Adobe-3.0
it works just fine. It sure would be simpler if the postscipt driver put this in
the file.
Paul Gilbert
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
2001 Feb 08
4
eps file not positioned properly in latex document
Dear People,
I am trying to include a barplot (see code below), in a latex document.
However, the plot appears in totally the wrong position. I know this is
not an R question as such, but the eps file is produced by R and I thought
that perhaps other people had had similar problems and could give me
pointers. Am I doing anything obviously wrong?
Sincerely, Faheem Mitha.
PS.
2004 Jan 17
3
Multiple groupedData plots in a postscript file using a loop
Hallo!
I want to plot multiple grouped data in a postscript
file using a loop. As I use a loop no plot (or just
one empty plot) is generated. Here an example:
library(nlme)
data(Loblolly) # example data from nlme
postscript("PSFile.ps")
for (i in 1:1) # just as example
{
plot(Loblolly)
}
dev.off()
Result: Just an empty PSFile.ps.
(Withoput the loop it works.
May anybody help?
Karl
1997 Jul 24
3
R-beta: Pictex and R
Dear R-users
It is me again with my interminables questions...
This time it is about "pictex". I understood that
pictex allows us to put our graph in a latex file
I have try the function:
> pictex (file=...)
and the answer was: "pictex" not found...
Does it mean that it is not an R-function yet?
Thank you for any feedback.
Halima from Leiden
2002 Oct 30
4
PDF printer using ps2pdf ?
Hi,
Is it possible to set up a printer in samba
that will use ps2pdf converter to create pdf documents when printing on it ?
Best Regards
Steph
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
2003 Nov 24
1
Warning calling par
Hi. I have a function that works well under R 1.7.1 But under 1.8.0 and 1.8.1 I get:Warning message:
calling par(new=) with no plot
And it doesnt plot
The function is:
mplotmeth1<-function(data1,data2,alpha,nr){
psfile<-paste("Meth1_",nr[1],"-",nr[length(nr)],".ps",sep="")
postscript(psfile)
close.screen(all=T)
par(mex=0.73,cex=0.8)
1997 Sep 30
1
R-beta: Printing graphs... help please
Hello,
I am trying to print graphs using R on MS windows
by clicking on the option Print on the top of the
window, the surprise...I don't get the graph, but the text, I think
asci, that generate the graph, about 20 pages
what is the problems.... Please....
any help is appreciated, thank you so much
halima
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-help
1997 Jun 07
1
R-beta: Encapsulated Postscript output with R-0.49
I've noticed that the postscript files produced by R-0.49
come up inverted in my postscript previewer. Also, they
do not behave like encapsulated postscript files so they
can't be imported into LaTeX documents. If I remove lines
with page-oriented commands like "%%Page", "%%Orientation",
"\bp" and "\ep", the resulting files seem to behave like
2009 Jan 27
2
using Sweave with a master file that has several iputted .tex files
Suppose I have a Master.Rnw file that looks something like this:
\documentclass[12pt]{mypaper}
\usepackage[margin=1in]{geometry}
\usepackage{setspace}
\usepackage{url}
\usepackage{indentfirst}
\usepackage{fancyhdr}
\usepackage{Sweave}
\pagestyle{fancy}
\lhead{sonographic rectal diameter and ADHD}
\rhead{ }
\usepackage{abbrevs}
%\usepackage{natbib}
%\usepackage{apacite}
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}
2004 Dec 20
3
Sweave and LaTeX beamer class
Hi,
has anyonne experienced problems between the LaTeX beamer class and
Sweave? The following code does not work properly:
#################################
\documentclass{beamer}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ngerman}
\begin{document}
\frame{
\frametitle{test}
test
<<>>=
1+1
@
}
\end{document}
#################################
Below is the
1998 Apr 25
1
R-beta: postscript in R and R
I am creating postscript-graphics in R. When I import them into
a LATEX document it is impossible to get the caption close
to the figure. I run the same program in Splus, and no problem
of getting the caption just below the figure. Another thing,
the ps file that S created is only 10% of the size of the file
that R created. What is wrong? Are there some parameters to
be set?
Helgi
2009 Dec 22
1
Sweave: font problems with Signif. codes lines
[Environment: Win Xp, Miktex 2.7, R 2.9.2]
In an Sweave document, I'm displaying the results of car:::Anova()
tests, that look like this in the
generated .tex file:
\begin{Soutput}
Type III MANOVA Tests: Pillai test statistic
Df test stat approx F num Df den Df Pr(>F)
(Intercept) 1 0.86 90.38 4 60 <2e-16 ***
---
Signif. codes: 0 ?***? 0.001 ?**? 0.01 ?*? 0.05 ?.? 0.1 ? ? 1
2009 Apr 16
2
there are fontencoding problem in Sweave
I want write article by russian language using Sweave. For cyrillic text
LaTeX use T2A encoding
\usepackage[T2A]{fontenc}
But in Sweave.sty we find:
\RequirePackage[T1]{fontenc}
It is source of critical problem.
For example Rnw file
$ cat estimation.Rnw
\documentclass[A4paper]{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian,english]{babel}
2012 Feb 01
2
Problem with xtable- rescaling a table
Dear R users,
I am new to Latex and I am using the R package xtable to generate tables.
I want to produce a table that is very long. in the landscape format, but
I would need to rescale the table so that it fits in the page. xtable
enables me to have the landscape format, but I cannot rescale it, and there
seems to be a problem, if I use scalebox in Latex on my output produced
with stable and the