[R] getting a Likert plot from a data frame
Liviu Andronic
landronimirc at gmail.com
Tue May 22 16:45:57 CEST 2012
On Tue, May 22, 2012 at 4:00 PM, Richard M. Heiberger <rmh at temple.edu> 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, 2012 at 9:44 AM, Liviu Andronic <landronimirc at gmail.com>
> wrote:
>>
>> Dear Richard
>>
>>
>> On Tue, May 22, 2012 at 3:20 PM, Richard M. Heiberger <rmh at temple.edu>
>> 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), panel.width=.46)
>> >
>>
>> Loading library(HH) and running the code above fails with this error:
>> > as.pyramidLikert(likert(mydata), panel.width=.46)
>> Error in inherits(x, "trellis") : could not find function "likert"
>>
>> Am I doing something wrong?
>> Liviu
>>
>> > sessionInfo()
>> R version 2.14.2 (2012-02-29)
>> Platform: x86_64-pc-linux-gnu (64-bit)
>>
>> locale:
>> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
>> [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
>> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
>> [7] LC_PAPER=C LC_NAME=C
>> [9] LC_ADDRESS=C LC_TELEPHONE=C
>> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
>>
>> attached base packages:
>> [1] splines grid stats graphics grDevices utils datasets
>> [8] methods base
>>
>> other attached packages:
>> [1] HH_2.2-23 latticeExtra_0.6-19 RColorBrewer_1.0-5
>> [4] leaps_2.9 multcomp_1.2-12 survival_2.36-12
>> [7] mvtnorm_0.9-9992 lattice_0.20-6 plyr_1.7.1
>> [10] Defaults_1.1-1 fortunes_1.5-0 sos_1.3-1
>> [13] brew_1.0-6
>
>
--
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
More information about the R-help
mailing list