I am using the R package likert to make graphs according to a questionnaire. The graphs are basically just preference spectrums and look very much like this reprex (no original data, cannot be disclosed):
data("pisaitems")
title <- "How often do you read these materials because you want to?"
items29 <- pisaitems[,substr(names(pisaitems), 1,5) == 'ST25Q']
head(items29); ncol(items29)
names(items29) = c("Magazines", "Comic books", "Fiction", "Non-fiction books", "Newspapers")
l29 <- likert(items29)
str(l29)
l29s <- likert(summary = l29$results)
str(l29s)
scale_height = knitr::opts_chunk$get('fig.height')*0.5
scale_width = knitr::opts_chunk$get('fig.width')*1.25
knitr::opts_chunk$set(fig.height = scale_height, fig.width = scale_width)
theme_update(legend.text = element_text(size = rel(0.7)))
plot(l29s) + ggtitle(title)
So here are my problems:
- I am doing this analysis for a GERMAN company and I can't seem to get rid of the label "Percentage" in the graph?
- How do I change the ticks on the axis to 10% increments?
- How do I align the Item names with the left and center the title? How do I align the legend with the bottom left corner?
I have managed to get most of the graph settings to my preferences but these last 3 keep eluding me.
fyi: Example was generate from this site: https://rpubs.com/m_dev/likert_summary