[R] Customize Legend in Juxtaposed Barplot

2009-04-08 Thread Paul Jones
Hello, I'm making barplots out of binary data, typically 0=no 1=yes, but in some instances I have 2=Don't Know. Anyway, when I create a juxtaposed barplot, what appears in the legend is 0,1,and 2. I want it to read No, Yes, Don't Know. I'm not sure how to do that. In addition to this, the

[R] Survey Package with Binary Data (no Standard Errors reported)

2009-04-03 Thread Paul Jones
Hi, I'm trying to get standard errors for some of the variables in my data frame. One of the questions on my survey is whether faculty coordinate across curriculum to include Arts Education as subject matter. All the responses are coded in zeros and ones obviously. For some of the other varia

Re: [R] Cross Tables with odfTable in odfweave

2009-03-09 Thread Paul Jones
Hey Marc, Your code was very helpful. You should make a new R function out of it. Actually it looks like adding margins may be a little bit tricky if I only want sums of the counts, not the percentages. If I add margins after I rbind, then R will sum together the counts with the probabilities

[R] Cross Tables with odfTable in odfweave

2009-03-02 Thread Paul Jones
Hi, I've been trying to prepare some crosstables for some survey questions for a client. I have been using the CrossTable function in the gmodels package. However, this command only seems to be able to create CrossTables in text documents. I've been trying to use odfTable in odfweave to create