Reordering groups in Likert plots with R

前端 未结 3 1255
时光取名叫无心
时光取名叫无心 2021-01-01 02:36

I\'m using the jbryer/likert package to plot Likert data.

Consider the response table, called items—here, A, B, and so on are

3条回答
  •  情话喂你
    2021-01-01 03:27

    I added a pull request to Jason Bryer's package that adds fullname attributes to the columns, which are then used when you plot. Detailed writeup here http://reganmian.net/blog/2013/10/02/likert-graphs-in-r-embedding-metadata-for-easier-plotting/

    Given that addition, you can do

    db <- likert_add_fullnames(db, c(
      "X7"="Do you use sites like Facebook, Twitter, or GPlus?",
      "X8"="Do you participate in online communities organised around your interests? 
        (could be juggling, cooking, sports or academics, for example)?",
      "X10"="Do you know of online communities relevant to your discipline or the 
        courses you are taking now?"))
    ...
    

    and then these names will be reflected when you plot.

提交回复
热议问题