dear Ripley and Diffort,
thank you for the quick reply.
I figured out it was my mistake: I wrote this to the list:
contour(x,x,d2)
in fact my framework I used
contour(x,x,d2,labex=0) # that produced the error
then I learned by myself that if I want to suppress labels I have to use
contour(x,x,
What viewers are you using?
Works for me (using ghostscript 4.61 and acroread 8.1.2) -- I even tried
2.7.1 (as well as R-patched).
On Fri, 1 Aug 2008, Patrizio Frederic wrote:
library(mvtnorm)
x = seq(-4,4,length=201)
xy= expand.grid(x,x)
sigma = (diag(c(1,1))+1)/2
d2= matrix(dmv
Hi Patrizio,
>> # I can see contour lines in a window device but I can't see them in
>> files pdftry.pdf and pstry.ps
No problem with either format on my system, though I am using 2.7.1 patched.
It's not mentioned as a bug fix for the patched version so surely was
working in 2.7.1. Probably some
library(mvtnorm)
x = seq(-4,4,length=201)
xy= expand.grid(x,x)
sigma = (diag(c(1,1))+1)/2
d2= matrix(dmvnorm(xy,sigma=sigma),201)
xsamp = rmvnorm(200,sigma=sigma)
contour(x,x,d2)
points(xsamp,col=3,pch=16)
pdf("pdftry.pdf")
contour(x,x,d2)
points(xsamp,col=3,pch=16)
dev.off()
postscr
4 matches
Mail list logo