Re: [R] getting a Likert plot from a data frame

2012-05-22 Thread Liviu Andronic
On Tue, May 22, 2012 at 4:00 PM, Richard M. Heiberger wrote: > out-of-phase problem > > Update to HH_2.3-15 that was published on CRAN yesterday. > Thanks! It works nicely now. Liviu > In HH_2.2-23 you needed to use a slightly longer name > plot.likert() instead of likert() > > On Tue, May 22,

Re: [R] getting a Likert plot from a data frame

2012-05-22 Thread Richard M. Heiberger
out-of-phase problem Update to HH_2.3-15 that was published on CRAN yesterday. In HH_2.2-23 you needed to use a slightly longer name plot.likert() instead of likert() On Tue, May 22, 2012 at 9:44 AM, Liviu Andronic wrote: > Dear Richard > > > On Tue, May 22, 2012 at 3:20 PM, Richard M. Heiberge

Re: [R] getting a Likert plot from a data frame

2012-05-22 Thread Liviu Andronic
Dear Richard On Tue, May 22, 2012 at 3:20 PM, Richard M. Heiberger wrote: > mydata <- data.frame( >    row.names=c("group1", "group2", "group3", "group4", "group5"), >    males=c(20,30,45,12,5), >    females=c(35,23,32,8,5)) > ## make a pyramid Likert chart > as.pyramidLikert(likert(mydata), pan

Re: [R] getting a Likert plot from a data frame

2012-05-22 Thread Richard M. Heiberger
Gavin, thank you for using likert() There are several problems in the use of a data.frame. 1. df is a bad name to use because df is the name of a base function (that isn't an error, it is bad style). 2. the as.character() made the line you sent not work. 3. you indeed have the variable cat as a f

[R] getting a Likert plot from a data frame

2012-05-22 Thread Gavin Rudge
I'm creating a stacked bar chart using the likert command in the HH package. My data are in a data frame, with two numeric variables and a categorical variable, I can't get likert to use the column containing the categorical variable as a my y axis label. Here is a quick example: library(HH)