私はリッカートパッケージを使用しています。
私のプロットは、公式のリッカート パッケージ ページ ( 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.heat.plot(128) + scale_fill_hue(name="Prozent")
しかし、それは実行されません likert.heat.plot(128) も実行されていません。
plot(128, type = "heat")
は。さらにggplot2パッケージをロードしました