Skip to content

question about probplot in e1071 package

3 messages · Thomas Adams, Luisfo

#
Hello!

I am using probplot in the e1071 package and want to do something like the
following, only with the the 2nd plot overlaying the first. I can't seem to
make it work. Any suggestions?

*library(e1071)
**x <- rnorm(100, mean=5)*

*y <- rnorm(100, mean=3)*

*probplot(x, line=FALSE)
*

*probplot(y, line=FALSE)
*

*Regards,*
*Tom*
#
Dear Thomas,

Reading the probplot?s help page, it looks like it is using qqplot underneath.
Thus, I think this is what you need.
	probplot(x, line=FALSE)
	#probplot(y, line=FALSE)
	qq.y <- qqnorm(y, plot=F)
	points(qq.y$y, qq.y$x)

I hope this is useful for you.

Best Regards,
Luisfo Chiroque
PhD Student
IMDEA Networks Institute
http://fourier.networks.imdea.org/people/~luis_nunez/ <http://fourier.networks.imdea.org/people/~luis_nunez/>

  
  
#
Luisfo,

Thank you so much! That does what I need.

Best regards,
Tom
On Mon, Apr 4, 2016 at 10:51 AM, Luisfo Chiroque <luisfo89 at yahoo.es> wrote: