Displaying 20 results from an estimated 6000 matches similar to: "barplots with pictex"
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.
2001 Mar 09
1
rotated and/or greek mtext in pictex()?
Greetings-
I'm aware that there's no documentation for pictex available easily (that
is, without purchasing it). I'm wondering if someone can help me with a
simple task. When generating a plot using pictex() from R, one of the
commands I use is
mtext("Dimension 2: L=xxxx", side=2, line=3)
when using X11(), this appears vertically along the Y axis; when using
pictex(), it
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
2005 Mar 31
2
pictex graphics device and color
Is the pictex graphics device known not to support color?
In R 2.0.1 Patched (2004-11-17), it produced very pretty output:
## pictex(file = "modern-metatheonomy.tex", bg = "transparent");
## plotData(data);
## dev.off()
... but it appears to have ignored all color information.
__________
Steve Rowley <steve.rowley at sanofi-aventis.com> Cambridge, MA: (617) 768-4054
2001 Mar 04
1
diagonal line through plot when using pictex()
Greetings-
I've got some plots I'd like to include in a LaTeX document; specifically,
I'd like to include them via pictex() so I can edit some of the
particulars directly. However, an odd problem is coming up: a diagonal
line is drawn from bottom-left to upper-right when using pictex(). This
does not happen using X11() or postscript() with the same series of
commands.
Any ideas why
1999 Jul 08
1
Bad Units Bug in barplot with pictex output device. (PR#220)
Dear Bug Team:
I encountered a bug when trying to make a barplot with the pictex
output device.
The following commands demonstrate the bug:
-----------------------------------------------
> errors <- c(3.08, 35.38, 33.85, 20.00, 7.69)
> errors
[1] 3.08 35.38 33.85 20.00 7.69
> pictex()
> barplot(errors)
Error: Bad units specified in GConvert, please report!
>
1999 Apr 25
1
pictex
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
2010 Feb 18
1
pictex
The example at ?pictex does not work (the driver apparently uses
'rotatebox') for me as stated. It did compile after including the
graphicsx package. A MWE is at the help page for pictex. I tried to
get in touch with Valerio but his email bounced. Probably we want to
add a \usepackage{graphicsx} to the help page and try to track down
Valerio.
Cheers,
Kyle
This is pdfTeX, Version
1999 Apr 21
2
GConvert error when using pictex (PR#173)
[I'm refiling this one due to mailer config messup]
I get an error whenever I try to plot a histogram in pictex.
The error doesn't occur for X11 or postscript.
> x<-c(1,2,3)
> pictex()
> hist(x)
Error: Bad units specified in GConvert, please report!
platform i686-unknown-linux
arch i686
os linux
2001 Feb 24
5
testing for integer
Dear People,
Consider the following fragment of R code
choose <- function(n,r)
{
if( is.integer(n) && is.integer(r) && n > 0 && r >= 0 )
{
.C("choose",as.double(n),as.double(r),comb = double(1))$comb
}
else stop("n must be a positive integer and r a non-negative integer.")
}
This is a practice function (n choose r), which I
1999 Sep 03
1
pictex device driver
I can't get LaTeX to recognize the output from the pictex device
driver. Are these commands for some special latex package which I
don't know about?
************************************************
* I.White *
* ICAPB, University of Edinburgh *
* Ashworth Laboratories, West Mains Road *
* Edinburgh EH9 3JT
2007 Sep 24
1
PicTeX output: how to suppress escaping of $ signs and braces?
Dear All,
I'm trying to draw a TeX histogram with the following pair of commands,
pictex(file = "realhisto.tex")
hist(Peaklist$V3,xlab="Height $z/\\ut{mm}$",ylab="Probability density $\\phi{}(z-z_0)/(1/\\ut{mm})$")
However, in the resulting file realhisto.tex, I get, for example
\put {Height \$z/\ut\{mm\}\$} [lB] <0.00pt,0.00pt> at 136.13 9.17
when
2008 Apr 30
3
checking whether a file is empty
Hi,
Is there a way to check whether a file is empty in R. I did the customary
searches, but did not find anything. Please cc me on any reply.
Thanks, Faheem.
2003 Apr 29
4
thick plot lines
Dear People,
In a qqplot I am doing, I get lines/points that are very thick. I've tried
setting the lwd variable to 0.1, but it doesn't seem to have any effect.
Also, I have set the value of lty to dashed, but I still get dots. The
command looks like
qqplot(cdf.inv(seq(0,1,length=size),theta,pos,len),empmargdistvec(len,theta,pos,size),
xlim=c(-theta,theta), ylim=c(-theta,theta),
2008 Aug 06
3
subsetting with column name as string
Hi,
Consider the following
> x = c(1,2)
> y = c(3,4)
> d = data.frame(cbind(x,y))
> d$x
[1] 1 2
> d$"x"
[1] 1 2
>
> foo = function(val)
+ {
+ return(d$val)
+ }
>
> bar = function()
+ {
+ return(d$"x")
+ }
>
> foo("x")
NULL
> bar()
[1] 1 2
I'm a little surprised that R accepts both the form d$x and d$"x", but
2000 May 01
6
including r code in a latex file
Dear R people,
The header practically says it all. I was wanting to include r code in a
Latex file. Since R code using{ and }, which are interpreted by Latex as
control characters, I would expect it to get upset.
I believe that \{ would probably print as {, but I hoping I don't have to
go through the code and add lots of \. I would rather use some global
commannd, along the lines of
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
2001 Mar 14
2
concatenating lists
Dear People,
I have been trying to perform concatenation operations on lists without
success. Consider the following example.
> x <- runif(2)
> y <- runif(2)
> z <- runif(2)
> xy <- list(x,y)
> xyz <- list(x,y,z)
I want to have a function foo such that foo(xy,z) is the same as xyz. This
appears not to be as easy as I thought, though there must be a way.
For example
2001 Nov 17
2
choosing g/g++ compiler executable in R CMD SHLIB
Dear People,
After considerable effort, I managed to install gcc-3.0 on my Debian
system. However, Debian keeps gcc-2.95 around as the default compiler, and
gcc, g++ point to the 2.95 version. The 3.0 versions need to be explicitly
invoked as gcc-3.0, g++-3.0 etc. How can I get R CMD SHLIB to invoke
gcc-3.0 instead of gcc and g++-3.0 instead of g++? I would like this to be
done by default but
1999 Dec 16
2
R question
I have the following question, which is elementary but I am unable to
answer.
In a for(i=10) loop, I am trying to represent the 10 1-dimensional vectors
l1, l2,... l10 by some expression that will run through these values.
ie. soppose I want to add l1 + ... + l10
I could go
x <- 0
for(i in 1:10){ x <- x+ l(i)}
This should return x to be the sum of the 10 li's for i from 1 to 10