我正在使用Likert软件包。
我的情节看起来像软件包产生的标准情节,可以在官方的Likert软件包页面(http://jason.bryer.org/likert/)上看到
我的问题:是否可以影响并手动更改图例标签(热图中的“百分比”以及比例尺中的“百分比”和“响应”?)]]
library(likert) data(pisaitems) items28 <- pisaitems[, substr(names(pisaitems), 1, 5) == "ST24Q"] head(items28) ncol(items28) items28 <- rename(items28, c(ST24Q01 = "I read only if I have to.", ST24Q02 = "Reading is one of my favorite hobbies.", ST24Q03 = "I like talking about books with other people.", ST24Q04 = "I find it hard to finish books.", ST24Q05 = "I feel happy if I receive a book as a present.", ST24Q06 = "For me, reading is a waste of time.", ST24Q07 = "I enjoy going to a bookstore or a library.", ST24Q08 = "I read only to get information that I need.", ST24Q09 = "I cannot sit still and read for more than a few minutes.", ST24Q10 = "I like to express my opinions about books I have read.", ST24Q11 = "I like to exchange books with my friends")) l28 <- likert(items28) summary(l28) plot(l28, type = "heat")
(来自likert站点的样本,将生成一个热图,并在颜色键图例中显示百分比表示)
编辑:我正在尝试:
likert.heat.plot(128) + scale_fill_hue(name="Prozent")
但是它不会运行likert.heat.plot(128)无法正常运行,这很奇怪,因为
plot(128, type = "heat")
是我另外加载了ggplot2软件包
我正在使用Likert软件包。我的地块看起来像软件包产生的标准地块,可以在官方的Likert软件包页面(http://jason.bryer.org/likert/)上看到。我的问题是:...
likert.heat.plot(..)
返回类为ggplot
的对象,则可以使用标准ggplot2
指令对其进行处理。因此,可以通过以下方式更改图例标题: