[R] repeated measurements ANOVA

2010-09-07 Thread Walther, Alexander
Dear list, i am setting up a GLM for a repeated measurement ANOVA using the lm and ANOVA function. my design contains four factors with 5, 5, 2 and 2 (= 14) levels, respectively. the data are stored in a data.frame with six columns, one for the data themselves and the remainings for the

[R] Choose every second value

2010-01-17 Thread Walther, Alexander
Dear list, is there a command that selects every second value from a given vector? For instance, a - c(1,2,3,4,5,6) should yield 1,3,5 and 2,4,6 which i intend to place into two seperate vectors. best Alex __ R-help@r-project.org mailing list

[R] gWidgets: plotting problem

2010-01-16 Thread Walther, Alexander
Dear list, i incorporated ggraphics into a loop that subsequently runs over a range of values. code looks as follows: multi = function(...){ for (i in 1:length(Lower)) # { ggraphics(cont=nb) par(mar=c(0,0,0,0)) plot(x,y,ylim=c(-2,2),xlim=c(Lower[i],Upper[i]),axes =TRUE, frame.plot = FALSE)

[R] gWidgets: loading problem

2010-01-15 Thread Walther, Alexander
Dear list, i try to set up a GUI with gWidgets. For this project, RGtk2 is required. By loading the package, i encounter the following error prompt: ---C Symbolname S_gtk_icon_factory_new not in DLL for package RGtk2--- Any suggestions how to fix this? And: is there a good resource for

[R] write.csv and header

2009-12-14 Thread Walther, Alexander
Dear list, I would like to export a matrix to a TXT-File by using write.csv (not necessarily). Is there a way to add a header (with additional informations concerning the project) spanning multiple lines to this file before the actual data are listed up? Should look like this: date: filename:

[R] plot merging/compression with R

2009-12-13 Thread Walther, Alexander
Dear list, i just encountered a problem concerning the export of multiple plots. is it possible to merge several PNGs into one PDF document? i know that this could be easily done by pdf(), but the outcome of this is /way/ too huge ( 15 MB, four plots) and to my knowledge there's no way to

[R] R has stopped plotting

2009-12-06 Thread Walther, Alexander
Dear list, as described beforehand, i wanted to merge three single plots into one JPEG-file. Since I use PNG now, code goes as follows: png(...) layout(...) par(...) plot(...) par(...) plot(...) par(...) plot(...) which works out pretty well, but now a new problem occurred: R has stopped

Re: [R] R has stopped plotting

2009-12-06 Thread Walther, Alexander
dev.off() I think. -Ista On Sun, Dec 6, 2009 at 10:53 AM, Walther, Alexander awaltherm...@googlemail.com wrot Dear list, as described beforehand, i wanted to merge three single plots into one JPEG-file. Since I use PNG now, code goes as follows: png(...) layout(...) par

[R] three plots as one JEPG?

2009-12-05 Thread Walther, Alexander
Dear List, i have a question concerning these device-related function (i.e. pdf(),jpeg(), etc.). Currently, I plot three graphs, one below the other into a /single/ window by using par(). I would like to save this figure now as JPEG or PNG. By now, code looks as follows: jepg(...) par(...)