[R] Issues in installing rgl in Mac OS 10.6.8
Dear All, I am trying to install rgl on my mac notebook from the source file. I tried using: /usr/bin/R64 CMD INSTALL rgl_0.92.798.tar.gz and get the following error message: checking for X... no configure: error: X11 not found but required, configure aborted. ERROR: configuration failed for package ‘rgl’ * removing ‘/Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl’ * restoring previous ‘/Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl’ I do see a directory X11 installed under /usr and Sys.getenv(PATH) inside R gives me: [1] /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin Could you please hep me to install rgl package? sessionInfo() R version 2.14.1 (2011-12-22) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base Thanks in advance. Kind regards, Ezhil __ R-help@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.
Re: [R] Correlation between 2 matrices but with subset of variables
Dear Peter, Thank you very much. Best regards, Ezhil --- On Fri, 3/9/12, Petr Savicky savi...@cs.cas.cz wrote: From: Petr Savicky savi...@cs.cas.cz Subject: Re: [R] Correlation between 2 matrices but with subset of variables To: r-help@r-project.org Date: Friday, March 9, 2012, 1:18 PM On Thu, Mar 08, 2012 at 03:57:06PM -0800, A Ezhil wrote: Dear All, I have two matrices A (40 x 732) and B (40 x 1230) and would like to calculate correlation between them. ?I can use: cor(A,B, method=pearson) to calculate correlation between all possible pairs. But the issue is that there is one-many specific mappings between A and B and I just need to calculate correlations for those pairs (not all). Some variables in A (proteins, say p1) have more than 3 (or 2 or 1) corresponding mapping in B (mRNA, say, m1,m2,m3) and I would like calculate correlations between p1-m1, p1-m2, and p1-m3 and then for the second variable p2 etc.? I have the mapping information in another file (annotation file). Could you please suggest me how to do that? Hi. Try the following. 1. Create some simple data X - matrix(rnorm(15), nrow=5, ncol=3) Y - matrix(rnorm(25), nrow=5, ncol=5) 2. Choose a table of pairs of columns, for which the correlation should be computed, and expand the matrices. ind - rbind( c(1, 1), c(1, 2), c(2, 2), c(3, 3), c(3, 4), c(3, 5)) X1 - X[, ind[, 1]] Y1 - Y[, ind[, 2]] 3. Compute the correlations between X1[, i] and Y1[, i] and compare to the diagonal of cor(X1, Y1) parallel.cor - function(X, Y) { X - sweep(X, 2, colMeans(X)) Y - sweep(Y, 2, colMeans(Y)) colSums(X*Y)/sqrt(colSums(X^2)*colSums(Y^2)) } out - parallel.cor(X1, Y1) verif - diag(cor(X1, Y1)) all.equal(out, verif) [1] TRUE Hope this helps. Petr Savicky. __ R-help@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. __ R-help@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.
[R] Correlation between 2 matrices but with subset of variables
Dear All, I have two matrices A (40 x 732) and B (40 x 1230) and would like to calculate correlation between them. I can use: cor(A,B, method=pearson) to calculate correlation between all possible pairs. But the issue is that there is one-many specific mappings between A and B and I just need to calculate correlations for those pairs (not all). Some variables in A (proteins, say p1) have more than 3 (or 2 or 1) corresponding mapping in B (mRNA, say, m1,m2,m3) and I would like calculate correlations between p1-m1, p1-m2, and p1-m3 and then for the second variable p2 etc. I have the mapping information in another file (annotation file). Could you please suggest me how to do that? Thanks in advance. Kind regards,Ezhil [[alternative HTML version deleted]] __ R-help@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.
Re: [R] Correlation between 2 matrices but with subset of variables
Thanks a lot, Michael. --- On Fri, 3/9/12, R. Michael Weylandt michael.weyla...@gmail.com wrote: From: R. Michael Weylandt michael.weyla...@gmail.com Subject: Re: [R] Correlation between 2 matrices but with subset of variables To: A Ezhil ezhi...@yahoo.com Cc: r-help@r-project.org Date: Friday, March 9, 2012, 7:59 AM Well, it would be possible to set something up to select out just the right pairs each time, but on my system the following a - matrix(rnorm(40 * 732), 40) b - matrix(rnorm(40 * 1230), 40) system.time(cor(a,b,method = pearson)) takes about a tenth of a second so any more elective approach will probably loose in the interpreter time needed for all the subsetting. The slowest calculation of this sort (Kendall correlation) takes about 30 seconds. In short, just do cor(A,B, method = pearson) and then subset from the overall correlation matrix. Michael On Thu, Mar 8, 2012 at 6:57 PM, A Ezhil ezhi...@yahoo.com wrote: Dear All, I have two matrices A (40 x 732) and B (40 x 1230) and would like to calculate correlation between them. I can use: cor(A,B, method=pearson) to calculate correlation between all possible pairs. But the issue is that there is one-many specific mappings between A and B and I just need to calculate correlations for those pairs (not all). Some variables in A (proteins, say p1) have more than 3 (or 2 or 1) corresponding mapping in B (mRNA, say, m1,m2,m3) and I would like calculate correlations between p1-m1, p1-m2, and p1-m3 and then for the second variable p2 etc. I have the mapping information in another file (annotation file). Could you please suggest me how to do that? Thanks in advance. Kind regards,Ezhil [[alternative HTML version deleted]] __ R-help@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. [[alternative HTML version deleted]] __ R-help@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.
[R] Reordering the correlation matrix
Hi, I have a correlation matrix of 1000 x 1000 genes. I have grouped (20 groups) genes based on function and each gene has a index. I would like to reorder the correlation matrix based on the group index. Could you please suggest me how to do that? Thanks in advance. Kind regards, Ezhil __ R-help@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.
[R] Help with scatter plot
Dear All, I would like to add the mean line in the scatter plot by groups. I have plotted (X.val is 3 groups: 0, 1, 2): plot( Y ~ X.val). How can I add mean/median line (horizontal) for each group on the scatter plot? Thanks in advance. Kind regards, Ezhil __ R-help@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.
[R] Working with large matrix
Dear All, I have large matrix (46000 x 11250). I would like to do the linear regression for each row. I wrote a simple function that has lm() and used apply(mat,1,func). The issue is that it takes ages to load the file and also to finish the lm. I am using LINUX 64 bit with 32G mem. Is there an elegant and fast way of completing this task? Thanks in advance. Kind regards, Ezhil __ R-help@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.
Re: [R] Working with large matrix
HI Steve, Thanks a lot for your suggestions. I never used bigmemory and biglm before. Is there a way (using systems commands) to combine awk and R? I was thinking of calling a R program inside Awk, passing each row to R, do the lm, get back results and process it with awk. Will this make the calculation fast? If you have any experience with large matrices, could you please share it with me? Thanks again, Ezhil --- On Fri, 9/11/09, Steve Lianoglou mailinglist.honey...@gmail.com wrote: From: Steve Lianoglou mailinglist.honey...@gmail.com Subject: Re: [R] Working with large matrix To: A Ezhil ezhi...@yahoo.com Cc: R-help@r-project.org Date: Friday, September 11, 2009, 11:56 PM Hi, On Sep 11, 2009, at 1:15 PM, A Ezhil wrote: Dear All, I have large matrix (46000 x 11250). I would like to do the linear regression for each row. I wrote a simple function that has lm() and used apply(mat,1,func). The issue is that it takes ages to load the file and also to finish the lm. I am using LINUX 64 bit with 32G mem. Is there an elegant and fast way of completing this task? Do bigmemory and biglm help? http://cran.r-project.org/web/packages/bigmemory http://cran.r-project.org/web/packages/biglm -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact __ R-help@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.
Re: [R] Averaging rows if a condition is true.
Thanks a lot, Mohamed. Kind regards, Ezhil --- On Mon, 9/7/09, Mohamed Lajnef mohamed.laj...@inserm.fr wrote: From: Mohamed Lajnef mohamed.laj...@inserm.fr Subject: Re: [R] Averaging rows if a condition is true. To: A Ezhil ezhi...@yahoo.com Cc: r-help@r-project.org Date: Monday, September 7, 2009, 9:22 PM Hi, Try to use aggregate function RSiteSearch (aggregate) #for help Regards ML A Ezhil a écrit : Dear All, I have matrix (5 X 60) of subjects and their responses to a set of questions. All responses are classified into categories (500). I would like to average all subject's responses for each category. I wrote a code using a for loop but is not working. Could please tell me what's wrong with the code? I guess, there is a elegant R way of doing the same thing. Thanks in advance. Kind regards, Ezhil j - 1; n - dim(dat)[1]; cat - as.character(dat[,1]); row - matrix(nrow=nrow(dat), ncol=ncol(dat)); for(i in 1:n-1) { if(cat[i] != cat[i+1]) {row[j, ] - dat[j, ]} else { start - j; end - i; } row[j, ] - colMeans(dat[j:i, ]); j+1; } __ R-help@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. -- Mohamed Lajnef INSERM Unité 955. 40 rue de Mesly. 94000 Créteil. Courriel : mohamed.laj...@inserm.fr tel. : 01 49 81 31 31 (poste 18470) Sec : 01 49 81 32 90 fax : 01 49 81 30 99 __ R-help@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.
[R] Averaging rows if a condition is true.
Dear All, I have matrix (5 X 60) of subjects and their responses to a set of questions. All responses are classified into categories (500). I would like to average all subject's responses for each category. I wrote a code using a for loop but is not working. Could please tell me what's wrong with the code? I guess, there is a elegant R way of doing the same thing. Thanks in advance. Kind regards, Ezhil j - 1; n - dim(dat)[1]; cat - as.character(dat[,1]); row - matrix(nrow=nrow(dat), ncol=ncol(dat)); for(i in 1:n-1) { if(cat[i] != cat[i+1]) {row[j, ] - dat[j, ]} else { start - j; end - i; } row[j, ] - colMeans(dat[j:i, ]); j+1; } __ R-help@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.
[R] Paired test for 2-way ANOVA
Hi, I have an experimental data with 2 factors: visit and treatment. Each subject has 2 visits and on each visit they get a treatment. We take samples before and after treatment. I can easily to do the 2-way ANOVA in R with visit and treatment as factors. anova( lm(data ~ visit*treatment) ) If I want to do the same 2-way ANOVA for the paired samples, how can I do that? Is there any R packages for that? Thanks in advance. Kind regards, Ezhil __ R-help@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.
[R] subsetting a matrix based on condition
Dear All, I have matrix of size 2500 x 12. I would like to select all the rows if 6 out 12 values are 0. How can I do that in R? Thanks in advance. Kind regards, Ezhil __ R-help@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.
[R] Extracting diagonal matrix
Dear All, I have a correlation matrix of size 100 x 100 and would like to extract the diagonal matrix from it. I have used the for loop to store tha correlation values of the diagonal matrix. Is there a 'R way' of doing this? Thanks in advance. Kind regards, Ezhil __ R-help@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.
Re: [R] Extracting diagonal matrix
Thanks. I would like to extract all the matrix entries below or above the diagnol. diag(x) simply gives diagonal elements. Thanks. Kind regards, Ezhil --- On Fri, 11/21/08, Peter Dalgaard [EMAIL PROTECTED] wrote: From: Peter Dalgaard [EMAIL PROTECTED] Subject: Re: [R] Extracting diagonal matrix To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], r-help@r-project.org Date: Friday, November 21, 2008, 6:23 PM [EMAIL PROTECTED] wrote: Try ?diag Or, if he really means the diagonal of a 100x100 correlation matrix, rep(1,100) :-) Rory Winston RBS Global Banking Markets Office: +44 20 7085 4476 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of A Ezhil Sent: 21 November 2008 12:28 To: r-help@r-project.org Subject: [R] Extracting diagonal matrix Dear All, I have a correlation matrix of size 100 x 100 and would like to extract the diagonal matrix from it. I have used the for loop to store tha correlation values of the diagonal matrix. Is there a 'R way' of doing this? Thanks in advance. Kind regards, Ezhil -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 __ R-help@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.
Re: [R] Extracting diagonal matrix
Hi, Thank you very much for the help. c[lower.tri(c,diag=FALSE)] works fine for me. Thanks again. Kind regards, Ezhil --- On Fri, 11/21/08, Anup Menon [EMAIL PROTECTED] wrote: From: Anup Menon [EMAIL PROTECTED] Subject: Re: [R] Extracting diagonal matrix To: [EMAIL PROTECTED] Cc: r-help@r-project.org Date: Friday, November 21, 2008, 9:16 PM Hi Ezhil, Maybe this will help. There might be an easier way to do this but here is one solution. tril - function(A) { A - as.matrix(A) cmats - matrix(rep(1,length(A)),dim(A)[1],dim(A)[2]) upper.tri(cmats,diag=T) cmats[upper.tri(cmats)] - 0 out - A*cmats return(out) } tril(correlation.matrix) will give you the output. HTH Best Regards Anup On Fri, Nov 21, 2008 at 7:28 AM, A Ezhil [EMAIL PROTECTED] wrote: Dear All, I have a correlation matrix of size 100 x 100 and would like to extract the diagonal matrix from it. I have used the for loop to store tha correlation values of the diagonal matrix. Is there a 'R way' of doing this? Thanks in advance. Kind regards, Ezhil __ R-help@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. __ R-help@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.
[R] Calculating correlation for a big matrix
Dear All, I have a matrix of size 1 x 50. I would like to calculate all possible pair-wise correlation coefficient (5x10^7 combinations) using cor(). How can I efficiently calcualte and save the result in a matrix? Thanks in advance. Kind regards, Ezhil __ R-help@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.
[R] Efficient calculation of correlation
Dear All, I have a matrix of size 1 x 50. I would like to calculate all possible pair-wise correlation coefficient (5x10^7 combinations) using cor(). How can I efficiently calcualte and save the result in a matrix? Thanks in advance. Kind regards, Ezhil __ R-help@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.
[R] Problem installing R on openSUSE 10.3
Dear All, I am trying to install R 2.7 on my openSUSE 10.3. I have faithfully followed instruction at http://cran.r-project.org/bin/linux/suse/ReadMe.txt. I have downloaded all the RPMs but still R complains about: libtcl8.4.so is needed by R-base-2.7.1-6.1.i586 I searched for this library and found a one, tcl-8.4.15-22.i586.rpm at openSUSE distribution site and installed. But R still complains about the same missing library. I don't know what I have to do now. Could please help me fixing this? Thanks. Best regards, Ezhil __ R-help@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.
Re: [R] Problem installing R on openSUSE 10.3
Hi, I didn't try automatic dependency resolution instead installed each library one by one. It seems that tcl is installed and the libtcl8.4.so exists. Below is the info from the system: rpm -q tcl tcl-8.4.15-22 whereis libtcl8.4.so libtcl8.4: /usr/lib64/libtcl8.4.so rpm -i R-base-2.7.1-6.1.i586.rpm error: Failed dependencies: libtcl8.4.so is needed by R-base-2.7.1-6.1.i586 Am I missing something? Thanks, Ezhil --- On Tue, 7/15/08, Detlef Steuer [EMAIL PROTECTED] wrote: From: Detlef Steuer [EMAIL PROTECTED] Subject: Re: [R] Problem installing R on openSUSE 10.3 To: r-help@r-project.org Cc: [EMAIL PROTECTED] Date: Tuesday, July 15, 2008, 9:46 PM On Tue, 15 Jul 2008 07:08:24 -0700 (PDT) A Ezhil [EMAIL PROTECTED] wrote: Dear All, I am trying to install R 2.7 on my openSUSE 10.3. I have faithfully followed instruction at http://cran.r-project.org/bin/linux/suse/ReadMe.txt. I have downloaded all the RPMs but still R complains about: libtcl8.4.so is needed by R-base-2.7.1-6.1.i586 Did you try automatic dependency resolution or did you download piece by piece? I searched for this library and found a one, tcl-8.4.15-22.i586.rpm at openSUSE distribution site and installed. But R still complains about the same missing library. What gives rpm -q tcl ? libtcl is provided by that package. I suspect somthing went wrong when you installed tcl. If tcl indeed is installed. Does libtcl physically exist ? Here I get: whereis libtcl8.4.so libtcl8.4: /usr/lib/libtcl8.4.so Just wild guesses, but it's a new error ... Best regards Detlef Steuer I don't know what I have to do now. Could please help me fixing this? Thanks. Best regards, Ezhil __ R-help@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. __ R-help@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.
[R] false discovery rate !
Dear All, It is not a typical R question (though I use R for this) but I thought someone will help me. For the list of P values, I have calculated FDR using p.adjust() in R (bioconductor). But my FDR values are same for all the P values. When do we get same FDR values? Does the smallest P values should less than 1/N? (where N is the number of P values) Thanks in advance. Kind regards, Ezhil __ R-help@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.
[R] Parsing a data file - Help
Hi All, I have the data in the following format: idktsaaplahto pidg 5266199119943078A 526619921005199210302968A 19930208199302093074A 2002032920020402F322 2002040220020409F322 6866198107131981091729800 6866198111091981112029550 6866198202031982021929550 I would like to parse the data and reformat into a single row for each unique idkt, something like: 5266 1991 1994 3078A 19921005 19921030 2968A I have tried with f - read.table(file.txt, sep=\t, header=TRUE); attach(f); fac - factor(f[,1]); id - matrix(length(fac), 4); for(i in fac) id[i] - f[idkt %in% fac[i], ]; I am not able make the list id into a single row. Could you please help how I can do this? Thanks in advance. Kind regards, Ezhil __ R-help@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.
[R] Split a string of oneline into 2 lines.
Hi, I am trying to split a string into 2 separate strings in 2 lines. So, tried with sprintf(%s \n %s, ID, Name) But R prints: [1] ID \n Name instead of ID Name Is it something I am missing here? Thanks in advance. Best regards, Ezhil __ R-help@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.
Re: [R] Split a string of oneline into 2 lines.
Thank you very much. It works ! Ezhil --- Uwe Ligges [EMAIL PROTECTED] wrote: A Ezhil wrote: Hi, I am trying to split a string into 2 separate strings in 2 lines. So, tried with sprintf(%s \n %s, ID, Name) But R prints: [1] ID \n Name instead of ID Name Is it something I am missing here? Yes, in order to respect teh control character you have to cat() it as in: cat(sprintf(%s \n %s, ID, Name)) Uwe Ligges Thanks in advance. Best regards, Ezhil __ R-help@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. __ R-help@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.
[R] Scatter Plot - 3 vectors side by side
Hi, I have 3 vectors, x=rnorm(10); y=rnorm(20); z=rnorm(30). I would like to plot 3 vectors side by side (like a bar plot) with scatter plot something similar to the following: .. *** ;;; .. ** ;;; .. *** ;;; .. *** ;;; ... *** ;; x y z How can I do this with Plot()? Thanks in advance. Best regards, Ezhil [[elided Yahoo spam]] __ R-help@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.