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

From: Thomas Adams <Thomas.Adams_at_noaa.gov>
Date: Sat, 26 Mar 2011 16:28:55 -0400

  David,

Thanks! This is very helpful! I'm still very much a novice…

Tom

On 3/26/11 4:11 PM, David Winsemius wrote:
>
> 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:
>
> probplot
>
> then...
>
> 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=...)
>

-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:	thomas.adams_at_noaa.gov

VOICE:	937-383-0528
FAX:	937-383-0033

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 26 Mar 2011 - 20:27:14 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:50:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive