Re: [R] PCA on SNP genotypes

2016-03-03 Thread Andrés Aragón Martínez
Mohsen, Check at Bioconductor. Andrés > El 03/03/2016, a las 9:43, Mohsen Jafarikia escribió: > > Hello everyone: > > I have about a couple of thousands of samples each with about 100 SNP > genotypes and I would like to do PCA using genotypes. I looked on the > web and

Re: [R] Help with abs function

2015-06-14 Thread Andrés Aragón Martínez
Hi, Just do the following: tran-c(7.2) tgrid-c(7.1,7.4,7.3,7.1,7.3) tgrid-tgrid-tran tgrid [1] -0.1 0.2 0.1 -0.1 0.1 abs(tgrid[tgrid0.1]) [1] 0.2 Andrés El 12/06/2015, a las 11:01, Jeff Newmiller jdnew...@dcn.davis.ca.us escribió: FAQ 7.31

Re: [R] Arranging two different types of ggplot2 plots with axes lined up

2013-04-18 Thread Andrés Aragón Martínez
Hi Saalem, Check the following: http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2)/ Regards, Andrés AM El 18/04/2013, a las 09:47, Saalem Adera saalemad...@gmail.com escribió: Hi all, I want to arrange two ggplot2 plots on the same page with their x-axes lined up -

Re: [R] locating boxplot in bwplot (lattice)

2013-02-24 Thread Andrés Aragón Martínez
Hi Elaine, In your dataset create a vector with the order in which you want appear the levels, then use that vector in the argument reorder. Andrés AM El 24/02/2013, a las 00:59, Elaine Kuo elaine.kuo...@gmail.com escribió: Hello, I tried to manipulate the order of boxplots using the

Re: [R] Analysis of Variance

2012-11-29 Thread Andrés Aragón Martínez
Hi D, R is taking drug as numeric, you ned indicate to R that drug is a factor: example12_7$drug -factor(example12_7$drug) ej2-aov(time~drug,data=example12_7) summary(ej2) Df Sum Sq Mean Sq F value Pr(F) drug 2 21.98 10.991 4.188 0.0345 * Residuals 16 41.99