[R] Independent variable dependent on offset in GLMM

2013-11-25 Thread Jonas Josefsson
around? Thanks, Jonas Jonas Josefsson (PhD student) Swedish University of Agricultural Sciences (SLU) Department of Ecology Box 7044 750 07 Uppsala Sweden jonas.josefs...@slu.se<mailto:jonas.josefs...@slu.se> 0046 (0)18

Re: [R] remove black square from factor plot

2010-10-22 Thread Jonas Josefsson
to remove this. Have tried to include bxp(par(medpch=NA)) without success. Thanks! Jonas Josefsson David Winsemius, MD West Hartford, CT __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] remove black square from factor plot

2010-10-20 Thread Jonas Josefsson
(species.factor) str(minlatitudemaxlatitude) # ? However, in the thin box which is produced by each species, there is a small black square in "center position" of the box. Is it possible to remove this. Have tried to include bxp(par(medpch=NA)) without success. Thanks! Jonas Josefsson David W

[R] boxplot issue

2010-10-15 Thread Jonas Josefsson
the two values... Thanks! Jonas Josefsson __ 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

Re: [R] R editor in ubuntu!

2010-10-05 Thread Jonas Josefsson
I can recommend RKWard which is more than an editor but is great. There is also an option to patch gedit to send commands, but it was to much of a hassle to set up to be of interest to me at least. Jonas 2010-10-05 15:52, Mehdi Zarrei skrev: Hello R-Users! I am looking for an editor to be ab

[R] calculating mean and s.d. from a two-column table

2010-09-27 Thread Jonas Josefsson
I have a two-column table as follows where age is in the 1st column and the number of individuals is in the 2nd. age;no 1;21 2;31 3;9 4;12 5;6 Can I use mean() and sd() to calculate the mean and standard deviation from this or do I have to manually multiplicate 21*1+31*2 etc. / N? _

[R] performing script on multiple files

2010-09-24 Thread Jonas Josefsson
say that I have a script that uses read.csv to read a textfile in a certain directory, then transforming the data a bit and then spit out a new file in an output directory. Is it possible to make this universal so the same procedure is made for all files in a certain directory and also make it s

[R] color of lines while printing through for loop

2010-09-24 Thread Jonas Josefsson
I am trying to find a convenient way to control line colors when printing from a for loop using the lines command. Right now I have solved this by creating a colors vector that is refered to in the loop with index. However, the colors choosen here are just 1,2,3,4,5... I would like to get colo

Re: [R] referencing last row in a column

2010-09-23 Thread Jonas Josefsson
Yes, thanks! :) 2010-09-23 11:55, Ivan Calandra skrev: >Hi, > xlim and ylim should be given the extremes only: > > plot(x,y, xlim=c(pheno.dt$year[1],pheno.dt$year[nrow(pheno.dt)]), > ylim=c(50,150), xlab="Year", ylab="Julian Day") >^^