Re: [R] Working with FactoMineR

2021-02-04 Thread Andrés Aragón
Hi, Could you send a sample of your data frame? Andrés > El 4 feb 2021, a las 7:07, Mahmood Naderan-Tahan > escribió: > > Hi, > > I tried to run the HCPC example [1] in the online R [2], but got an error: > > > > library(FactoMineR) > data(tea) > res.mca = MCA(tea, ncp=20, quanti.sup=19

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 found different option

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[tgrid>0.1]) [1] 0.2 Andrés > El 12/06/2015, a las 11:01, Jeff Newmiller > escribió: > > FAQ 7.31 > ---

Re: [R] making a plot

2014-10-20 Thread Andrés Aragón
Enrico, This may help you: text(locator(1), "*", cex=1.5,adj=0.5 and text(locator(1), "º", cex=1.5,adj=0.5 Draw your plot, then write the code, locate the cursor on your plot, put the symbols where you want itl and click. Regards, Andrés PS ?locator 2014-10-20 9:46 GMT-05:00 Enrico C

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 escribió: > Hi all, > > I want to arrange two ggplot2 plots on the same page with their x-axes > lined up - even though one i

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 escribió: > Hello, > > I tried to manipulate the order of boxplots using the "reorder" below and

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

Re: [R] fractal image analysis

2011-12-19 Thread Andrés Aragón
Dear Petr, Well, It is not R but works well: Fractal dimension and lacunarity a plugin for ImageJ. Best regards, Andrés AM * * 2011/12/19 Sarah Goslee > Hi, > > I've always used FRAGSTATS, but it looks like the SDMTools package will > do it within R. > > Sarah > > On Mon, Dec 19, 2011 at 4:5

Re: [R] extract data for specific levels factor

2011-10-26 Thread Andrés Aragón
> > (i) subset(mydata, cat == 'por fol pec') > which you can use as a data argument inside ggplot2 - e.g., > > ggplot(subset(mydata, cat == 'por fol pec'), aes(x = age, y = ind)) + >geom_point() > > (ii) use faceting to get individual plots by factor

[R] extract data for specific levels factor

2011-10-25 Thread Andrés Aragón
Dear all, I'm trying to analyze data with the following structure: ind cattx age 40.2 por fol peq vh35 41.9 por fol med vh35 68.9 por fol preov vh 35 71.5 por fol peq ser 37 67.5 por fol medser 37 76.9 por fol preov

Re: [R] labels in a boxplot

2011-10-12 Thread Andrés Aragón
Francesco, Try cex.axis=0.6 Regards, Andrés AM 2011/10/12, Francesco Sarracino : > Dear R-listers, > > I have a little problem with a boxplot and I hope you can help me figuring > it out. > I'll try to make up some data to illustrate the issue. Sorry, if my > procedures look naive, but these ar

Re: [R] Question about ggplot2 and stat_smooth

2011-10-03 Thread Andrés Aragón
Hi, Try some like this: c <- ggplot(mtcars, aes(qsec, mpg, colour=factor(cyl))) c + stat_smooth(aes(group=cyl))+stat_smooth(aes(fill=factor(cyl)))+geom_point() Andrés AM 2011/10/3, Thomas Adams : > I'm interested in creating a graphic -like- this: > > c <- ggplot(mtcars, aes(qsec, wt)) > c

[R] Rcmdr help

2011-08-26 Thread Andrés Aragón
Hi, please help me, I want to have a functional Rcmdr but after install as indicated in: http://socserv.mcmaster.ca/jfox/Misc/Rcmdr/installation-notes.html obtain the following: Loading Tcl/Tk interface ... done Loading required package: car Loading required package: MASS Loading required package