[R] Creating and editing networks

2004-05-09 Thread Gabor Grothendieck
I want to draw and edit networks. Currently I will do something like this -- my actual networks are larger and more complex: 1. Plot network # use polygon with nodes as example network N - 20 t. - 2*pi*seq(N+1)/N plot(cos(t.), sin(t.), type=b, pch=19, cex=5, col=blue, axes=F, ann=F) 2. copy

Re: [R] Creating and editing networks

2004-05-09 Thread Uwe Ligges
Gabor Grothendieck wrote: I want to draw and edit networks. Currently I will do something like this -- my actual networks are larger and more complex: 1. Plot network # use polygon with nodes as example network N - 20 t. - 2*pi*seq(N+1)/N plot(cos(t.), sin(t.), type=b, pch=19, cex=5, col=blue,

Re: [R] Creating and editing networks

2004-05-09 Thread Robert Gentleman
Or graph, RBGL and Rgraphviz from www.bioconductor.org On Sun, May 09, 2004 at 02:35:02PM +0200, Uwe Ligges wrote: Gabor Grothendieck wrote: I want to draw and edit networks. Currently I will do something like this -- my actual networks are larger and more complex: 1. Plot network

[R] Using known errors and error bars

2004-05-09 Thread Sebastian Schubert
Hi, I'm now to R and hope (actually, I'm quite sure) you can help me. I made an experiment and measured two values. As I know the errors of these values I want to use them with the linear regression, eg Value A 1.1+-0.02 1.9+-0.05 3.05+-0.03 4.0+-0.01 5.1+-0.06 Value B 4.2+-0.14

Re: [R] Modalwert

2004-05-09 Thread Thomas Petzoldt
Sonja Dornieden wrote: Hai - kann mir jemand sagen, wie ich den Modalwert in R berechne?! IRgendwie finde ich den Befehl nicht greetz und herzlichen Dank Sonja Hi, there was already a thread in this list about this question with subject Computing the mode on 24.02.2004. You will find several

Re: [R] Using known errors and error bars

2004-05-09 Thread Gabor Grothendieck
See plotCI in package gregmisc. Sebastian Schubert Sebastian-Schubert at gmx.de writes: : : Hi, : : I'm now to R and hope (actually, I'm quite sure) you can help me. I made : an experiment and measured two values. As I know the errors of these : values I want to use them with the linear

Re: [R] Using known errors and error bars

2004-05-09 Thread Prof Brian Ripley
What do you actually know? You don't have `known errors', as if you did you could correct the values. I doubt if you actually have a known range, more likely a standard error or a confidence interval. (If you think you do have a known range, how do you know?) And if A is not known exactly,

Re: [R] Getting the groupmean for each person

2004-05-09 Thread Thomas Lumley
On Sat, 8 May 2004, Gabor Grothendieck wrote: predict(lm(AV~as.factor(GROUP))) If Felix actually has a huge data frame this will be slow. Instead try groupmeans-rowsum(AV,GROUP,reorder=FALSE) individual.means- groupmeans[match(GROUP, unique(GROUP)] It uses hashing and takes roughly

Re: [R] Modalwert

2004-05-09 Thread Murray Jorgensen
Off-topic, I know, but when I try to follow secure links like this in Mozilla, I always get a message The connection was refused when trying to contact www.stat.math.ethz.ch and I am forced to use Internet Explorer instead. This is under Windows XP. Is this because www.stat.math.ethz.ch is

[R] strange behavior of names-

2004-05-09 Thread Liaw, Andy
Dear R-help, I've encounter what seems to me a strange problem with names-. Suppose I define the function: fun - function(x, f) { m - tapply(x, f, mean) ans - x - m[match(f, unique(f))] names(ans) - names(x) ans } which subtract out the means of `x' grouped by `f' (which is the

[R] Colouring hclust() trees

2004-05-09 Thread Richard A. O'Keefe
I have a data set with 6 variables and 251 cases. The people who supplied me with this data set believe that it falls naturally into three groups, and have given me a rule for determining group number from these 6 variables. If I do scaled.stuff - scale(stuff, TRUE, c(...the design

Re: [R] strange behavior of names-

2004-05-09 Thread Gabor Grothendieck
Execute these two commands: ans - fun(x,f) attributes(ans) and you get this: $dim [1] 20 $dimnames $dimnames[[1]] [1] a a b c a d a b d d a b d c c c b c b [20] d so ans does not have names, it has dimnames. If you try dimnames(ans) - NULL then its dimnames do get nulled