[R] LaTeX in R
supratik at stat.ucc.ie
Fri Jul 30 18:12:08 CEST 2004
Sorry!, by "TeX" I meant the PicTeX option for graphics devices (which
in anycase produces bulky files!).
From: Uwe Ligges
To: Roy, Supratik
Cc: 'r-help at stat.math.ethz.ch'
Sent: 7/30/2004 3:58 PM
Subject: Re: [R] LaTeX in R
Roy, Supratik wrote:
> I tried to include LaTeX expressions in the header of a plot in R.
> (1) Using PlotMath, LaTeX type expressions, e.g., R^x is possible,
> dist<-"...." (some string)
> does not substitute the value of dist, as well do the proper
> Also within an expression, substitute does not work, (apparently), so
> explicit substituting of "dist" does not take place. Pasting
> ....main=paste(expression(R^x),dist)... does not work either.
> Is there any way out? Even if it is "trivial" please indicate any
See the examples in ?plotmath and how to use substitute. Also, you might
want to look into the R Help Desk column in R News 2(3).
> (2) Problem in (1) is stated for a general graphics device and
> capabilities. I am aware that the "TeX" option for the graphics device
What is the "TeX" option, please?
> is a way out, but when converted to eps or ps, and included in a LaTeX
> and compiled to produce pdf/ps files,
> the headers are not converted into meaningful symbols. Has anyone
> anything on this?
> Many journals now have online submission procedures, which compile pdf
> on site
> after the LaTeX file , and the figures, mostly required to be eps, are
> uploaded. I expect
> others to have come across similar problems.
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide!
R-help at stat.math.ethz.ch mailing list
PLEASE do read the posting guide!
More information about the R-help