Re: [R] strwidth to lines

2009-01-05 Thread Thomas Kaliwe
Why do you take 2.54? I think you forgot a bracket... #par(mar = c(max(strwidth(names(x)) * 2.54, 4,4,2)) # #should be par(mar = c(max(strwidth(names(x))) * 2.54, 4,4,5)) #and 5 would be a better value. But this is merely trial and error?! Regards Thomas Kaliwe Henrique Dallazuanna schrieb

[R] strwidth to lines

2009-01-05 Thread Thomas Kaliwe
row = c(1,2)) par(mar = c(8,4,4,2)) barplot(x, las = 3, main = "8 is to much") par(mar = c(4,4,4,2)) barplot(x, las = 3, main = "4 is not enough") ### strwidth2lines... regards Thomas Kaliwe __ R-help@r-project.org mailing list h

Re: [R] S4 slot containing either aov or NULL

2008-12-01 Thread Thomas Kaliwe
on("aovOrNULL", c("aov", "NULL")) setClass("c1", representation(value = "aovOrNULL")) y1 <- new("c1", value = NULL) #trying to assign an aov object to the slot doesn't work utils::data(npk, package="MASS") npk.aov <

[R] S4 slot containing either aov or NULL

2008-11-26 Thread Thomas Kaliwe
uot;c1", value = NULL) #trying to assign an aov object to the slot doesn't work utils::data(npk, package="MASS") npk.aov <- aov(yield ~ block + N*P*K, npk) y2 = new("c1", value = npk.aov ) Any ideas? Thank you Thomas Kaliwe __ 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, reproducible code.

Re: [R] T and P Statistics

2008-06-25 Thread Thomas Kaliwe
Hi, help(t.test) x = rnorm(10, mean = 10, sd = 1) #some data mytest = t.test(x, mu = 10) #is mu = 10 attributes(mytest) #what's in the test mytest$p.value #obtain the p-value mytest$statistic #obtain the t-value aka statistic HTH T

Re: [R] java applets

2008-04-09 Thread Thomas Kaliwe
Hi, I used Rserve http://www.rforge.net/Rserve/ to use the facilities of R in a java applet. If you know how to write an applet, there are some examples of how to talk to Rserve from Java. Thomas Kaliwe lamack lamack schrieb: > Dear all, is it possible to implement some statistics d