[R] pictex

Orlando San Martin orlando at inreach.com
Tue Apr 27 09:06:41 CEST 1999


Janusx,
thanks for your help.as you suggested I am including 2 files, one with the .R code I
am using, the other with the latex example. I hope you have better luck.

In any case, I am now suspecting my R is not working well, because I was not able to
workout this example using the

> source("test1.R")

my version only wants to accept interactively commands ....therefore, whatever your
luck with this file, I wonder how to upgrade to 0.64 if it is worth....I dont find
much info on how to actually do an upgrade, is it the same as a fresh installation
??....do I have to delete 0.63 or what ??.

My 0.63 for Linux I took it from the binaries, I have never used the sources, so I am
a bit sceptical, but if is easy enough, and I get the "recipe" to do it , I may !!.

thanks again for your feedback !!.
orlando

Janusz Kawczak wrote:

> Orlando:
> I've replicated your commands and it seems that they cause no problems on
> my machine (RH5.2 with R 0.64). Since you are using 0.63 version of R you
> may as well upgrade it. But, this should not cause the difference. In
> latex document, I suspect, you must have included something that it is
> causing the tex to loop for a while (or you've included some offensive
> command). If you don't mind I would like to see the latex file that gives
> you such an error (with the pictex from R). Without it, there is not much
> one can say!
>
> Janusz.
>
> ** Janusz Kawczak                                                       **
> ** UNC at Charlotte, Department of Mathematics, Room 350F               **
> ** Charlotte, NC, 28223-0001, U.S.A.                                    **
> ** Tel.: (704) 547-2566 (W) (704) 921-0273 (H) Fax.: (704) 510-6415     **
>
> On Sun, 25 Apr 1999, Orlando San Martin wrote:
>
> > Hi, I am very new to R and trying to bring my plot of residuals to my
> > LaTex document, and seems as I need some help.
> >
> > I first tried the example from the help file, e.g.
> >
> > pictex(file="model1.tex", width=5, height=4)
> > plot(1:11,(-5:5)^2, type='b', main="Simple Example Plot")
> > dev.off()
> >
> > this worked fine in LaTex when I did :
> >
> > \centerline{\input{Rplots.tex}}
> >
> > However, with my residuals plot, which looks like :
> >
> > pictex(file="model1.tex")
> > plot(fitted(model1),resid(model1),xlab="Fitted values",
> > ylab="Residuals", main="Residuals vs Fitted")
> >
> > I can see OK the generated plot  in my Xwindow, but LaTex complains that
> > requires more memory. I am not a LaTex expert either, so I wonder if it
> > REALLY needs more memory or I should use some other more efficient way
> > of doing it in R, for instance instead of pictex ??.
> >
> > I'll appreciate your feedback.
> >
> > orlando
> >
> > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> > Send "info", "help", or "[un]subscribe"
> > (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Boston1.tex
Type: application/x-tex
Size: 3183 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/19990427/c69ab7f3/Boston1.tex
-------------- next part --------------
sink("boston.lis")
BostonData <- read.table("boston.dat",header=T)
BostonData
summary(BostonData)
model1 <- lm(medv ~ 1 + crim + zn + indus + chas + nox + rm + 
age + dis + rad + tax + ptratio + bk + lstat, data = BostonData)
summary(model1)
pictex(file="resid1.tex")
plot(fitted(model1), resid(model1),xlab="Fitted values", ylab="Residuals",
main="Residuals vs Fitted")


More information about the R-help mailing list