r - generating a histbackback graph -


i thought generating histbackback graph fpr masterthesis in r. doesn't work. think have mistake somewhere in command or in thoughts, how gengerate graph.

i want illustrate, how "fun" people had , on other side how "evaluate" used tool. these 2 'parameters' x-axis in units of people/answers. surveyed people gave me answers these 2 points making 5 point rating, i.e. 'a lot of fun' till 'very less fun' (see orignial data underneath). 5 point rating scale shall on y-axis. how generate hisbackback graph. r gives me message: 'x' must numeric...

i tried generate graph following commands:

library(hmisc)  age <- vs[,1] # sex <- c("spaß", "beurteilung") out <- histbackback(split(age, sex), probability=true, xlim=c(-11,11),  main = "histogramm des spaßfaktors und der beurteilung von videoscribe")   barplot(-out$left, col="blue", horiz=true, space=0, add=true, axes=false) barplot(out$right, col="red", horiz=true, space=0, add=true, axes=false) 

out of survey generated processed datas, used command above!:

    spaß    beurteilung sehr viel spaß/sehr gut 4   5 viel spaß/gut   8   6 normal/neutral  10  9 wenig spaß/schlecht 3   4 sehr wenig spaß/sehr schlecht   3   4 

the orignial data following:

spaß bei video      beurteilung der software sehr viel spaß     sehr schlecht sehr viel spaß     sehr gut viel spaß      neutral sehr wenig    spaß  gut viel spaß      gut sehr wenig spaß    neutral normal     gut viel spaß      sehr gut normal     neutral sehr wenig spaß     sehr schlecht normal     sehr schlecht viel spaß       neutral normal      neutral wenig spaß      neutral viel spaß       sehr schlecht sehr viel spaß      schlecht normal      sehr gut sehr viel spaß      sehr gut wenig spaß      schlecht normal      schlecht normal      gut viel spaß       neutral normal      schlecht viel spaß       sehr gut normal      gut normal      neutral wenig spaß      gut viel spaß       neutral 

i tried transpose first matrix , changed command bit. nothing works. never the right graph, shows me on x-axis number of persons rated factor 'fun' , 'evaluation', , on y-axis right bar 5 point scale... can please me, this!?

thanks lot!


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -