[R] Help on Html format R 2.10

2009-11-26 Thread Ruben Cabrera
Hello: I´m trying to change the plain text help to html help but I don´t know if this is possible with R 2.10.0 (Windows XP). The installation process always set to plain text. I found this http://old.nabble.com/change-in-default-behavior-of--functionname-in-R-2.10--td26115436.html Thanks in adv

Re: [R] barchart() {Lattice} help.

2009-11-26 Thread Peng Cai
Hi Again, Before I start getting into what you just suggested, let me confirm if I made my point clear previously. I'm looking for horizontal lines similar to one on the following link (It has parallel lines for each y=200, y=400,...): http://pfiles.5min.com/images/176735/176734313.jpg What you

Re: [R] barchart() {Lattice} help.

2009-11-26 Thread Peng Cai
Currently I'm trying and I'm looking to draw lines y=-3, y=-2,..., y=8: Data: Sample Col1 Col2 Col3 Row1 -2 4 -1 Row2 3 -2 4 Row3 3 5 -2 Row4 4 1 -1 Code: library(lattice) dta<-read.table("data.txt", header=TRUE, row.names="Sample") coltemp=c(619,376,497,598,124,92,402) myYscale <- seq(-10, 10, 1

Re: [R] barchart() {Lattice} help.

2009-11-26 Thread David Winsemius
I do not see that you have used any panel functions. Even if you did not review the help from ?barchart, where there are several examples of using panel functions, I would have expected that you would look carefully at Peter Ehlers' code and try to apply it. -- David. On Nov 26, 2009, at

Re: [R] Grouped Boxplot

2009-11-26 Thread Richard M. Heiberger
The grouped boxplot is one of the features included in the HH package. An example is posted on my site http://astro.ocis.temple.edu/~rmh/HH/bwplot-color.pdf Reconstructing Figure 3 in your file GroupedBoxplot.pdf from your 11/24/2009 10:35 AM email would be easy. __

Re: [R] barchart() {Lattice} help.

2009-11-26 Thread Peter Ehlers
Peng, Did you try the code I sent? If not, why not? If you want equally spaced grid lines, use panel.grid() in place of panel.abline(). BTW, I don't understand what that "title=..." stuff in your auto.key() call is supposed to do. I think it just results in title=NULL. -Peter Ehlers Peng Cai

Re: [R] barchart() {Lattice} help.

2009-11-26 Thread Peng Cai
Hello Peter and David, Thanks for your help. I have added what you suggested and its working perfectly fine except: When I add the panel function, the legend changes. In the sense without the panel function the column names are shown with small colored rectangles (on right), but after adding it t

Re: [R] Feature request for as.Date() function

2009-11-26 Thread Gabor Grothendieck
The situation he is referring to seems to be this: > L <- "date,value\n'2009-01-01',10\n'2009-02-01',1\n'NA', 3" > read.csv(textConnection(L), colClasses = c("Date", "numeric")) Error in charToDate(x) : character string is not in a standard unambiguous format where all the fields in the date c

Re: [R] barchart() {Lattice} help.

2009-11-26 Thread David Winsemius
On Nov 26, 2009, at 8:30 PM, Peng Cai wrote: > Hello Peter and David, > > Thanks for your help. I have added what you suggested and its > working perfectly fine except: > > When I add the panel function, the legend changes. In the sense > without the panel function the column names are shown

[R] Symmetric Matrix classes

2009-11-26 Thread Gad Abraham
Hi, I'd like to store large covariance matrices using Matrix classes. dsyMatrix seems like the right one, but I want to specify just the upper/lower triangle and diagonal and not have to instantiate a huge n^2 vector just for the sake of having half of it ignored: Dumb example: M <- new("dsyMatr

[R] set condition in R

2009-11-26 Thread Hongwei Dong
Hi, R users, I'm using while() in R to set a condition. My condition is: i<523 or i>535. How should I write this in R? I try "while (i<523 or i>535)" and it does not work. Thanks. Garry On Tue, Nov 10, 2009 at 11:26 AM, Hongwei Dong wrote: > Exactly! Thanks, Duncan. > > Let me re-phrase me qu

Re: [R] Symmetric Matrix classes

2009-11-26 Thread David Winsemius
On Nov 26, 2009, at 9:45 PM, Gad Abraham wrote: Hi, I'd like to store large covariance matrices using Matrix classes. dsyMatrix seems like the right one, but I want to specify just the upper/lower triangle and diagonal and not have to instantiate a huge n^2 vector just for the sake of having

[R] layers in xYplot of Hmisc

2009-11-26 Thread Joe King
In the "filled bands" part of xYplot of the Hmisc package, is there a way to have multiple bands with multiple lines? or does it just allow one for now? So I had an example bit ago had a made up line and CI, now if I wanted to make a second line with a CI filled in can I put them on the same pl

Re: [R] set condition in R

2009-11-26 Thread David Winsemius
On Nov 26, 2009, at 9:59 PM, Hongwei Dong wrote: Hi, R users, I'm using while() in R to set a condition. My condition is: i<523 or i>535. How should I write this in R? I try "while (i<523 or i>535)" and it does not work. Thanks. ?Logic (i<523 | i>535) Garry snipped what appeared t

Re: [R] barchart() {Lattice} help.

2009-11-26 Thread P Ehlers
As I wrote earlier: "I had to add the rectangles= and points= arguments to auto.key to get the same key as you had earlier." and the relevant line in the code was: auto.key = list(space = 'right', rectangles=TRUE, points=FALSE) -Peter Ehlers Peng Cai wrote: Hello Peter and David, Thanks f

Re: [R] set condition in R

2009-11-26 Thread guohao.huang
You can use the statements ``while( I < 523 || I > 535)'' instead. It will work fine. Guo-Hao Huang -- From: "Hongwei Dong" Sent: Friday, November 27, 2009 10:59 AM To:

Re: [R] barchart() {Lattice} help.

2009-11-26 Thread Peng Cai
@ Peter: I got it, thanks a lot for all your help! And yes, as you said the "title" option in auto.key is redundant. @ All, Hi: I need to add percentage sign to y-axis labels (like 0%, 20%, ..., 100%). How can I get it. I'm using barchart() function as given below along with the data set. Data:

Re: [R] layers in xYplot of Hmisc

2009-11-26 Thread David Winsemius
On Nov 26, 2009, at 10:26 PM, Joe King wrote: In the "filled bands" part of xYplot of the Hmisc package, is there a way to have multiple bands with multiple lines? or does it just allow one for now? No problem as long as you use groups... which means you probably ought to be providing a

Re: [R] JMP <-> R ?

2009-11-26 Thread Wai Kuan Yip
Hello Robert, I am also trying to do the same. There is a way to do it using SAS Macro but I am still trying... You can have a look at this PDF: www.lexjansen.com/phuse/2008/ts/ts01.pdf www.lexjansen.com/phuse/2008/ts/ts01.pdf Let me know if it works!? Wai-Kuan Yip Deakin Motion Capture Lab

Re: [R] draw circle on PCA plot

2009-11-26 Thread Wai Kuan Yip
Phoebe, Hi, this was how I solved that problem using plot(). I found using symbols to be hard to adjust... #plot the 1st vs 2nd component plot(x,y,ylab="2nd component", xlab="1st component", xlim=range(x), ylim=range(y), main="1st vs 2nd component analysis") #show the arrows, length defined by

[R] Splitting the Distribution

2009-11-26 Thread ychu066
Hi all, I am wondering if R can split the distribution respect to the median ? I know it can be done in SAS. http://old.nabble.com/file/p26535862/Normal.bmp Normal.bmp ?? -- View this message in context: http://old.nabble.com/Splitting-the-Distribution-tp26535862p26535862.html Sent from

Re: [R] Symmetric Matrix classes

2009-11-26 Thread David Winsemius
On Nov 26, 2009, at 11:00 PM, Gad Abraham wrote: On Fri, Nov 27, 2009 at 2:22 PM, David Winsemius > wrote: On Nov 26, 2009, at 9:45 PM, Gad Abraham wrote: Hi, I'd like to store large covariance matrices using Matrix classes. dsyMatrix seems like the right one, but I want to specify just th

Re: [R] Splitting the Distribution

2009-11-26 Thread David Winsemius
On Nov 26, 2009, at 10:21 PM, ychu066 wrote: Hi all, I am wondering if R can split the distribution respect to the median ? I know it can be done in SAS. ?polygon If you want worked examples there are serveral in the archives: http://search.r-project.org/nmz.html -- David Winsemius,

[R] Learning R - View datasets

2009-11-26 Thread Brock Tibert
Hi All, I am making a serious effort to try to learn R, but one hurdle I am facing is that I need to "see" the data as I walk through the examples in the packages. For instance, many examples on the web start by a command like data("wines"). How can I actually view what the dataset looks like

Re: [R] Symmetric Matrix classes

2009-11-26 Thread Gad Abraham
On Fri, Nov 27, 2009 at 2:22 PM, David Winsemius wrote: > > On Nov 26, 2009, at 9:45 PM, Gad Abraham wrote: > >> Hi, >> >> I'd like to store large covariance matrices using Matrix classes. >> >> dsyMatrix seems like the right one, but I want to specify just the >> upper/lower triangle and diagonal

Re: [R] Learning R - View datasets

2009-11-26 Thread guohao.huang
Please check the following pdf file. http://tw.nextmedia.com/applenews/article/art_id/32119622/IssueID/20091127 1. First install.packages("Flury") 2. library(Flury") 3. data("wines") 'wines’ is a data frame with 26 observations, one factor denoting the country of origin and 15 quantitative varia

[R] Overlapping x - axis lables

2009-11-26 Thread Julia Cains
Dear R helpers Suppose I am plotting a simple scatter plot where no of paired observations (x,y) are say 100. month     length 1               10 2           12 3   17 4       21 5   13 .. .

Re: [R] Overlapping x - axis lables

2009-11-26 Thread Jim Lemon
On 11/27/2009 05:11 PM, Julia Cains wrote: Dear R helpers Suppose I am plotting a simple scatter plot where no of paired observations (x,y) are say 100. month length 1 10 2 12 3 17 4 21 5 13 ...

[R] R and SAS JMP

2009-11-26 Thread rajclinasia
Hi everybody, my question is I have R installed in my system and SAS JMP version8 also installed in my computer. but how these two are related, how we can use these two tools for analysis. thanks in advance. -- View this message in context: http://old.nabble.com/R-and-SAS-JMP-tp26536257p265362

Re: [R] Overlapping x - axis lables

2009-11-26 Thread Julia Cains
Dear Sir, Thanks again for your help. Sir, actually I am working on a data containing 84 months and the corresponding savings (core) balances and non-core balances and I am plotting a stacked bar. The original code I am using is as follows x = read.csv('core-noncore.csv') x2 <- data.frame(rep

[R] How to compute Rolling analysis of Standard Deviation using ZOO package?

2009-11-26 Thread Saji Ren
Hello: I want to get a rolling estimation of the stdev of my data. Searching the document, I found the function "rollapply" in the zoo package. For example, my series is "c", and i want get a period of 10 days, so i write the command below: roll.sd = rollapply( c, 10, sd, na.pad = TRUE, align =

<    1   2