Re: [R] 2 questions about probplot in package e1071

From: David Winsemius <>
Date: Sat, 26 Mar 2011 16:11:52 -0400

On Mar 26, 2011, at 4:06 PM, Thomas Adams wrote:

> The contributed package e1071 does exactly what I want except that I
> need to have (1) the abscissa and ordinate axes swapped, with the
> probability scale on the bottom and the quantiles scale on the LHS.
> Using the following example:
> library(e1071)
> x <- rnorm(100, mean=5)
> probplot(x, line=FALSE)
> and (2) I need to have lines connecting the plotted symbols, as you
> get with:
> x<-log(seq(1:20))
> plot(x,type='b')
> How can I do these two things; I've done a bunch of searching, but
> have not come across anything yet.

The code is all there. Just rework it. Type:



probplot2 <- function(

and paste in your re-worked code that swaps labels, the x and y vectors, and change axis(1) to axis 2 and axis(2, ...) to axis(1, ...) a few other swaps like abline(h=...) to abline(v=...)


David Winsemius, MD
West Hartford, CT

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 26 Mar 2011 - 20:14:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 26 Mar 2011 - 20:40:25 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive