[R] how funciton expression produces subscript

2006-04-18 Thread Jing Yang
Dear R-users, does anyone know how funciton expression produces subscript? Best,Jing __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] problem for wtd.quantile()

2006-03-16 Thread Jing Yang
Dear R-users, I don't know if there is a problem in wtd.quantile (from library Hmisc): x - c(1,2,3,4,5) w - c(0.5,0.4,0.3,0.2,0.1) wtd.quantile(x,weights=w) --- The output is: 0% 25% 50% 75% 100% 3.00 3.25 3.50 3.75 4.00 The

Re: [R] problem for wtd.quantile()

2006-03-16 Thread Jing Yang
you're looking for this? ?wtd.quantile wtd.quantile(x,weights=w, normwt=TRUE) 0% 25% 50% 75% 100% 12235 Andy From: Jing Yang Dear R-users, I don't know if there is a problem in wtd.quantile (from library Hmisc): x - c(1,2,3,4,5) w

Re: [R] problem for wtd.quantile()

2006-03-16 Thread Jing Yang
Thanks. But that's interesting. === At 2006-03-16, 15:15:49 you wrote: === I don't know why using the fractional weights and normwt=TRUE gives that answer, but: wtd.quantile(x, 5:1) 0% 25% 50% 75% 100% 11235 Andy From: Jing Yang Actually, I am looking

[R] how to set the values of the axis in reverse order

2006-03-16 Thread Jing Yang
Dear R-users, Does anybody know in plot() how to set the values of the axis in reverse order, like in excel there is an option to format the axis? Best,Jing __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] how to calculate the quantile of the weighted data

2006-03-10 Thread Jing Yang
Dear R-users, Does anyone have an idea of how to calculate the quantile of the weighted data? Any suggestion will be appreciated! Best,Jing __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] how to make some characters in the xlab of a plot to be superscripted or subscript?

2006-03-09 Thread Jing Yang
Dear R-users, I am trying to make my plot nicer. Does anyboby know how to make some characters in the xlab of a plot to be superscripted or subscript? ? for example m3/s in the x-axis label, how to make 3 supersripted? Best,Jing __

[R] how to draw x-axis at randomly position

2006-03-08 Thread Jing Yang
Dear R-user, Does any of you know how to draw x-axis at randomly position? It looks I could only draw x-axis at the bottom and top of the plot area (by using function axis). However, sometimes I need to draw x-axis at randomly position, for example, in the plot of y~x, I'd like to let the

[R] how to add the 95% confidence bands for the normal QQ plot?

2006-02-14 Thread Jing Yang
I had the problem to do this. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html