Re: [R] suggestion for analysis ....MANOVA ?

2009-12-03 Thread ychu066
up up up .. ychu066 wrote: > > Hi eveyone, > > I am currently working with a porject which requires me to compare 6 > profiles which have 146 response variables . . . where profile one, two > and three are tested on the same day say Day1 but ptofile five and six are >

[R] suggestion for analysis ....MANOVA ?

2009-12-02 Thread ychu066
Hi eveyone, I am currently working with a porject which requires me to compare 6 profiles which have 146 response variables . . . where profile one, two and three are tested on the same day say Day1 but ptofile five and six are on different days say Day2 and Day3. I have two research question

[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

[R] Adding text in the panels for Trellis plot ...

2009-11-25 Thread ychu066
i was trying to do a for loop for plotting the histograms , but it doesnt work properly > library(lattice) > columns <- 8:153 > plots <- vector("list", length(columns)) > j <- 0 > for (i in columns) + { + plots[[ j <- j+1 ]] <- histogram( ~ data[,i] | data[,2],ylab = "Frequency", +

[R] Multivariate problems . . . with 200 resposes variables and 1 explanatory variable

2009-11-25 Thread ychu066
How should I analysis it in R all the resposes variables are ordinal from 0 to 10. and the explanatory variable is a factor ... -- View this message in context: http://old.nabble.com/Multivariate-problems-.-.-.-with-200-resposes-variables-and-1-explanatory-variable-tp26522912p26522912.html

Re: [R] Trellis Plot

2009-11-24 Thread ychu066
mycolors[panel.number()])}) + trellis.focus('strip', 1, 1, highlight=FALSE) + ltext(0.60, -0.25, 'PPM', col='blue', pos=3) + trellis.unfocus() + } Error in grid.Call.graphics("L_downviewport", name$name, strict) : Viewport 'plot1.strip.1.1.vp&#x

[R] Trellis Plot

2009-11-23 Thread ychu066
anyone know how to add text in the Trellis plot panel ?? i want to add things eg: dot dot dot. in the headrer of the panel. eg: http://old.nabble.com/file/p26486579/hist1.png hist1.png -- View this message in context: http://old.nabble.com/Trellis-Plot-tp26486579p26486579.html Sent from the R

[R] Translation from R codes to SAS.

2009-11-23 Thread ychu066
my teachers doesnt understand R and I don't know how to use SAS. Anyone interested in translating my codes to test whether your SAS codes are as good as R??? I can test it on SAS codes once you have translated it regards:working: -- View this message in context: http://old.nabble.com

Re: [R] How do I change the colour and format for the trelli plot ?

2009-11-22 Thread ychu066
anyone know how to add some text on the panel ??? for example 2.5, 50 and 1000 are mearsured in Litre, and i want to put the units beside the measurements. How could i do that? ychu066 wrote: > > NICE!!! thanks > > Deepayan Sarkar wrote: >> >> On Thu, Nov 19,

Re: [R] How do I change the colour and format for the trelli plot ?

2009-11-22 Thread ychu066
NICE!!! thanks Deepayan Sarkar wrote: > > On Thu, Nov 19, 2009 at 6:03 AM, ychu066 > wrote: >> >> http://old.nabble.com/file/p26418382/hist1.png hist1.png  i want three >> plots >> along on the side , how to i do that ? >> >>  and I also want t

[R] any equivalent SUM IF statement in R

2009-11-22 Thread ychu066
for example, i want to sum all the row entries if column 1 takes the value "boy". anyone knows ? -- View this message in context: http://old.nabble.com/any-equivalent-SUM-IF-statement-in-R-tp26467889p26467889.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] How do I change the colour and format for the trelli plot ?

2009-11-19 Thread ychu066
I AM REALLY LOST . ychu066 wrote: > > I want to change the colour of the histogram in each panel by the levels > of the conoditonal factor. > > I have 3 levels in the factor > > levels(data[,2])[1] > levels(data[,2])[2] > levels(data[,2])[3] >

[R] RE shaping large dataset

2009-11-19 Thread ychu066
I am doing a project which involve reshaping a large dataset, can any of you please sugguest me some good reading/websites/ examples can be in R and SAS Thanks everyone !!! -- View this message in context: http://old.nabble.com/REshaping-large-dataset-tp26421513p26421513.html Sent from

Re: [R] How do I change the colour and format for the trelli plot ?

2009-11-19 Thread ychu066
I want to change the colour of the histogram in each panel by the levels of the conoditonal factor. I have 3 levels in the factor levels(data[,2])[1] levels(data[,2])[2] levels(data[,2])[3] what can i do , in order to chnage the colour ?? ychu066 wrote: > > Fore example my c

Re: [R] How do I change the colour and format for the trelli plot ?

2009-11-19 Thread ychu066
Fore example my code is histogram(~data[,8]|data[,2], ylab = "Frequency", xlab = "Score", xlim = c(1,5), ylim = c(0,100),layout = c(3,1),col=data[,2] ) and i want the colour to be depended on the level of the factor in data[,2]. how do i do that ? ychu066 wrot

Re: [R] How do I change the colour and format for the trelli plot ?

2009-11-19 Thread ychu066
what is that ? Hrishi Mittal wrote: > > Add col=i in the histogram call. > -- View this message in context: http://old.nabble.com/How-do-I-change-the-colour-and-format-for-the-trelli-plot---tp26418382p26421453.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] How do I change the colour and format for the trelli plot ?

2009-11-18 Thread ychu066
tried reading the help(histogram) but didnt fiind it helpful ychu066 wrote: > > I have solved the first problem by using layout=c(1,3) > > but still cant find the solution for the next problem of getting > differenct colour for the bars in the 3 different histogram plots

Re: [R] re placing the dates format in R for exporting the data set...

2009-11-18 Thread ychu066
do, not how you want to do it. > > On Tue, Nov 17, 2009 at 4:54 PM, ychu066 > wrote: >> >> hi everyone, i am having difficulties with replacing the dates format in >> R >> for exporting the data set... >> >> eg: the code that i used was >> toms_d

Re: [R] How do I change the colour and format for the trelli plot ?

2009-11-18 Thread ychu066
I have solved the first problem by using layout=c(1,3) but still cant find the solution for the next problem of getting differenct colour for the bars in the 3 different histogram plots ychu066 wrote: > > http://old.nabble.com/file/p26418382/hist1.png hist1.png i want three &

Re: [R] HOw to delete a row in the data matrix and change the order of the row ???

2009-11-18 Thread ychu066
done thanks Uwe Ligges-3 wrote: > > Assign new row names? > > Uwe Ligges > > > ychu066 wrote: >> hi, >> >> i delete row 65,70,75 in my data >> data<- data[-c(65,70,75),] >> >> But i also want the order of the row to match up

[R] How do I change the colour and format for the trelli plot ?

2009-11-18 Thread ychu066
http://old.nabble.com/file/p26418382/hist1.png hist1.png i want three plots along on the side , how to i do that ? and I also want to change the colour of the bars for each plot, how do i do that ? i got the code here to draw that .. columns <- 8:153 plots <- vector("list", length(columns))

Re: [R] re placing the dates format in R for exporting the data set...

2009-11-18 Thread ychu066
you get V1, > V2,... You can put your own column names. It helps again to read the > help file on 'read.table' and look at the parameter 'col.names'. > There is also the colnames function. It also might help to (re)read > the Intro to R. > > On Tue, Nov

[R] HOw to delete a row in the data matrix and change the order of the row ???

2009-11-17 Thread ychu066
hi, i delete row 65,70,75 in my data data<- data[-c(65,70,75),] But i also want the order of the row to match up eg: 67 11111111111111 1 68 11111111111111 1 69 1

Re: [R] re placing the dates format in R for exporting the data set...

2009-11-17 Thread ychu066
Moreover, I want to rename the column name V1,V2,V3,V4.V146. how do i write the code in R ??? thanks everyone that look at the thread/ ychu066 wrote: > > hi everyone, i am having difficulties with replacing the dates format in R > for exporting the data set... > > eg:

Re: [R] Plotting Histogram using histogram() and for loop and Iwant to save the histogram individually ... HELP

2009-11-17 Thread ychu066
port between png(..) and dev.off() > > If you supply the data explicitly it doesn't make any sense to pass the > data through the data argument. > > No need for paste(x) if is x is already a character vector. > > > -Original Message- > From: r-help-boun...@r

Re: [R] re placing the dates format in R for exporting the data set...

2009-11-17 Thread ychu066
moreover, how come when I export a dataframe out from R say, it become a excel file. The first column includes the inex number eg: 1,2,3 ..n instead of including the values that the first column should be have anyone know how to solve this problem ? ychu066 wrote: > > hi every

[R] re placing the dates format in R for exporting the data set...

2009-11-17 Thread ychu066
hi everyone, i am having difficulties with replacing the dates format in R for exporting the data set... eg: the code that i used was toms_dat<- replace(toms_dat, toms_dat ==2009-08-06, 2) toms_dat<- replace(toms_dat, toms_dat ==2009-08-04, 1) but when i export the data as into txt file or exce

Re: [R] Plotting Histogram using histogram() and for loop and Iwant to save the histogram individually ... HELP

2009-11-17 Thread ychu066
; HTH > Colin. > > Incidentally, > > You put what you want to export between png(..) and dev.off() > > If you supply the data explicitly it doesn't make any sense to pass the > data through the data argument. > > No need for paste(x) if is x is already a char

Re: [R] Plotting Histogram using histogram() and for loop and I want to save the histogram individually ... HELP

2009-11-17 Thread ychu066
tried but still doesnt work ... very weird ... ychu066 wrote: > > here is the codes that i tried. > >> png(paste("hist",i,".png",sep="") > + library(lattice) > Error: unexpected symbol in: > "png(paste("hist",i,&q

Re: [R] Plotting Histogram using histogram() and for loop and I want to save the histogram individually ... HELP

2009-11-16 Thread ychu066
], data=data,ylab="Frequency",xlim=c(1,5),xlab="Score",ylim=c(0,100))) Error: unexpected ')' in: "for(i in 8:153){ histogram(~ data[,i] | data[,2], data=data,ylab="Frequency",xlim=c(1,5),xlab="Score",ylim=c(0,100)))" > } Error:

[R] Plotting graphs using FOR loop

2009-11-16 Thread ychu066
I have the following codes but can anyone make it shorter i.e making these FOR loop into one loop ... thanks... par(mfrow=c(2,4)) for(i in 16:23){ hist(data[,i],main=paste(colnames(data)[i],sep=""),ylab="Frequency",xlim=c(1,5),xlab="Score",ylim=c(0,100)) } png("histogram.png

Re: [R] Plotting Histogram using histogram() and for loop and I want to save the histogram individually ... HELP

2009-11-16 Thread ychu066
still doesnt work ... Karl Ove Hufthammer wrote: > > On Thu, 12 Nov 2009 19:10:52 -0800 (PST) ychu066 @aucklanduni.ac.nz> wrote: >> And I also want to save each histogram in each separate pdf file using >> the >> following codes ?. >> png("hist.png[i]&q

[R] Plotting Histogram using histogram() and for loop and I want to save the histogram individually ... HELP

2009-11-12 Thread ychu066
I am trying to write R codes for the histogram plot and saving it out. There will be 146 histogram plots in total…. I have the following R codes that draws the each Histogram …. library(lattice) for(i in 8:153){ histogram(~ data[,i] | data[,2], data=data,,ylab="Frequency",xlim=c(1,5),xlab="Scor