[R] combine lattice plot and standard R plot

2011-05-05 Thread Lucia Cañas
Thank you very much for your help and for your quick answers. Lucía Cañás Ferreiro Instituto Español de Oceanografía Centro Oceanográfico de A coruña Paseo Marítimo Alcalde Francisco Vázquez, 10 15001 - A Coruña, Spain Tel: +34 981 218151 Fax: +34 981 229077 lucia.ca...@co.ieo.es http://www.ieo

[R] combine lattice plot and standard R plot

2011-05-04 Thread Lucia Cañas
Dear R users, I would like to combine lattice plot (xyplot) and standard R plot (plot and plotCI) in an unique figure. I use the function "par()" to combine plot and plotCI and I use the function "print()" to combine xyplot. I tried to use these functions to combine xyplot and plotCI and plots

[R] offset in gam

2011-03-30 Thread Lucia Rueda
dance of groupers per transect? in the example offset=2 Thanks a lot in adavance Lucia -- View this message in context: http://r.789695.n4.nabble.com/offset-in-gam-tp3417491p3417491.html Sent from the R help mailing list archive at Nabble.com. __ R-h

[R] color code in loop for piecharts plotting

2011-02-25 Thread Lucia Rueda
a lot of families so I'm wondering if there's any way to fix that some other way. I don't know if I made myself clear... Thanks! Lucia -- View this message in context: http://r.789695.n4.nabble.com/color-code-in-loop-for-piecharts-plotting-tp3324

Re: [R] reshape data, adding rows to dataframe

2011-02-02 Thread Lucia Rueda
Thanks Henrique! It solves the problem of having the column "N" with unreal number of individuals since N=1 with Petr's example: expand <- transform(dat[rep(1:nrow(dat), times=dat$N), ] ,N=1) rownames(expand) <- NULL expand > expand animal N 1 a 1 2 a 1 3 b 1 4 c 1 5

Re: [R] reshape data, adding rows to dataframe

2011-02-02 Thread Lucia Rueda
Exactly!! Thanks a lot Petr. It worked! Thansk to you as well Ivan! -- View this message in context: http://r.789695.n4.nabble.com/reshape-data-adding-rows-to-dataframe-tp3253640p3253793.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] reshape data, adding rows to dataframe

2011-02-02 Thread Lucia Rueda
en I don't think that aggregate, unique or duplicated would do it... but I'm not good with R so I can be wrong. Cheers! Lucia -- View this message in context: http://r.789695.n4.nabble.com/reshape-data-adding-rows-to-dataframe-tp3253640p3253780.html Sent from the R help mailing list a

[R] reshape data, adding rows to dataframe

2011-02-02 Thread Lucia Rueda
pe function without success. I also tried in access but couldn't do it either. Thanks a lot, Lucia -- View this message in context: http://r.789695.n4.nabble.com/reshape-data-adding-rows-to-dataframe-tp3253640p3253640.html Sent from the R help mailing list archi

Re: [R] Odp: count of factors

2011-01-19 Thread Lucia Rueda
Thanks a lot Petr!! It worked! -- View this message in context: http://r.789695.n4.nabble.com/count-of-factors-tp3224791p3224924.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/

[R] count of factors

2011-01-19 Thread Lucia Rueda
but it didn't work because FAMILIA is a factor, and there isn't a "count" function (or I didn't find it). I also tried other options like the "match" function, "level" function, etc. I know I can do it manually typing by myself the names of the 16 fa

[R] Help: Standard errors arima

2010-11-22 Thread lucia
1.028710e-05 9.990842e-07 1.218299e-018.969206e-05 time(TempVector) - 1900 2.725763e-08 -3.103661e-09 8.969206e-057.311670e-08 Or is there a function that can give me standard errors for the coefficients on AR1, ma, and time? (I don't care

[R] sm.ancova graphic

2010-11-22 Thread Lucia Cañas
Hi R-Users, I am working with sm.ancova (in the package sm) and I have two problems with the graph, which is automatically generated when sm.ancova() is run. 1-Besides of the fitted lines, the observed data appeared automatically in the graph. I prefer that only fitted lines appear. I check th

[R] Interactions in GAM

2010-09-08 Thread Lucia Cañas
Thank you so much for your answer, it has been really useful. I have already included the interactions in the models and I have obtained better results. Best regards, Lucía Cañás Lucía Cañás Ferreiro Instituto Español de Oceanografía Centro Oceanográfico de A Coruña Paseo Marítimo Alcalde Fr

[R] Interactions in GAM

2010-09-03 Thread Lucia Cañas
Hello R users, I am working with the GAM to inspect the effect of some factors (year, area) and continuous variables (length, depth, latitude and longitude) on the intensity and prevalence of the common parasite Anisakis. I would like introduce interaction in my models, both "continuous variabl

Re: [R] offset in gam and spatial scale of variables

2010-05-20 Thread Lucia Rueda
g about it like gamm, gee, sar, car, etc. Cheers, Lucia -- View this message in context: http://r.789695.n4.nabble.com/offset-in-gam-and-spatial-scale-of-variables-tp483p2224528.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] offset in gam and spatial scale of variables

2010-05-19 Thread Lucia Rueda
#x27;s spatial autocorrelation doing gamm, sar or gee. Thanks, Lucia -- View this message in context: http://r.789695.n4.nabble.com/offset-in-gam-and-spatial-scale-of-variables-tp483p976.html Sent from the R help mailing list archive at Nabble.com. _

[R] offset in gam and spatial scale of variables

2010-05-19 Thread Lucia Rueda
at different spatial scales? Thanks, Lucia -- View this message in context: http://r.789695.n4.nabble.com/offset-in-gam-and-spatial-scale-of-variables-tp483p483.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

[R] using a for loop with variable as vectors

2009-02-27 Thread Laura Lucia Prieto Godino
ors I have defined, and I have no idea how to make a for loop in which it loops takes a variable. Can anyone help me? I am lost Thank you! Lucia [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/

[R] Chi-squared test adjusted for multiple comparisons? Harbe's test?

2009-02-05 Thread Laura Lucia Prieto Godino
to do it in R, as well I have seen a paper in which they do something similar and they are using a Harber's chi squared test. Does anybody know how to do that in R? Thank you very much for your help, and thanks to the jim and chuck for answering my previous statistical questi

[R] wilcoxon test with bonferroni correction

2009-02-02 Thread Laura Lucia Prieto Godino
he wilcoxon test? Thank you very much. Lucia Lucia Prieto Godino PhD student. Department of Zoology, Downing street University of Cambridge. UK __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the po

[R] Getting Annual (Conditional) Averages

2007-11-17 Thread lucia
ar has 366 days.) I know I can set up a formal loop to create annual records and then average. But R seems to have such neat methods, is there some better way to do this? Lucia [[alternative HTML version deleted]] __ R-help@r-project.org ma

[R] boot.ci and NA values

2007-09-28 Thread Lucia Costanzo
simulation with 1000 iterations, the coverage probability is 1. Is this the correct approach for tackling NA values when using boot.ci? Thanks, Lucia library(boot) source(file = "http://www.uoguelph.ca/~lcostanz/mima1.ssc";) # - Teo Dataset - studynum <-c(1, 2, 3, 4, 5,