Re: [R] Frequencies from a matrix - spider from frequencies

2010-03-21 Thread Uwe Dippel
Jim Lemon wrote: Yes, I realized that I had forgotten to require(plotrix) after I sent the message. From your example, you might also want to look at the diamondplot function, also in plotrix. Jim, thanks for the hint to diamondplot. It is much closer natively to what I wanted to do, and

Re: [R] Frequencies from a matrix - spider from frequencies

2010-03-16 Thread Jim Lemon
On 03/16/2010 02:43 AM, Uwe Dippel wrote: ... Thanks, Jim, this one works (with your random data)! (In case anyone reads and wants this as well, package plotrix provides radial.plot.) The overlap is normal, because it's random data. When the respondents have a less random streak of answering

[R] Frequencies from a matrix - spider from frequencies

2010-03-15 Thread Uwe Dippel
First of all, I really like R! Still being a newbie, I find things (the difficult ones) to be very simple. Alas, some 'simple' things still escape me. (Maybe the tutorials are often too much focused on the 'difficult' items??) Here comes my 'problem', over which I have sweated for the last 2

Re: [R] Frequencies from a matrix - spider from frequencies

2010-03-15 Thread Dennis Murphy
Hi: The first part is straightforward. You didn't supply example data, but it's easy to generate it oneself: likmat - matrix(sample(1:5, 310, replace = TRUE), nrow = 31) dim(likmat) # [1] 31 10 frq - t(apply(likmat, 2, table)) # 10 x 5 matrix, questions in rows As for the plot, ?stars The

Re: [R] Frequencies from a matrix - spider from frequencies

2010-03-15 Thread Dieter Menne
Uwe Dippel-2 wrote: Here comes my 'problem', over which I have sweated for the last 2 hours: My data are of a matrix 10x31, Likert Scale (1-5). 10 questions, 31 respondents. Now, I want to display the frequencies per question. I have not found any better (any more simple) than for (in

Re: [R] Frequencies from a matrix - spider from frequencies

2010-03-15 Thread Jim Lemon
On 03/15/2010 06:24 PM, Uwe Dippel wrote: ... And, now somewhat less of the ordinary, a spider/radar showing the number of responses for each question (circular axis, 10), with the frequencies as radial axes. That is, 5 polygons showing the frequencies of the responses per each question. Hi

Re: [R] Frequencies from a matrix - spider from frequencies

2010-03-15 Thread Uwe Dippel
Jim Lemon wrote: Hi Uwe, Here's one way to get your spider plot: ld1-matrix(sample(1:5,310,TRUE),nrow=31) ld2-apply(ld1,2,table) radial.plot(ld2,line.col=2:6,rp.type=p, radial.pos=seq(0,9*pi/5,by=pi/5), labels=paste(Q,1:10,sep=),start=pi/2, clockwise=TRUE,main=Frequency of response by

Re: [R] Frequencies from a matrix - spider from frequencies

2010-03-15 Thread William Dunlap
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Uwe Dippel Sent: Monday, March 15, 2010 8:27 AM To: Dennis Murphy Cc: r-help@r-project.org Subject: Re: [R] Frequencies from a matrix - spider from frequencies Dennis Murphy