strengejacke / sjPlot

sjPlot - Data Visualization for Statistics in Social Science

Home Page:https://strengejacke.github.io/sjPlot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aligning percentages on `plot_likert()`

dinanajiarch opened this issue · comments

Hello,

I am trying to align the percentages on my Likert plot. Any help is appreciated.

`my_theme <- theme_classic(base_size = 17) +
theme(
plot.title = element_text(hjust = 0.5, size = 17, face="bold.italic"), # Center title position and size
plot.subtitle = element_text(hjust = 0.5), # Center subtitle
plot.caption = element_text(hjust = 0, face = "italic"), # move caption to the left
axis.title.x = element_text(size=17, face="bold"),
axis.title.y = element_text(size=17, face="bold"),
legend.position = "top",
axis.text.x = element_blank(),
axis.ticks.x = element_blank()
)

p <- plot_likert(items,
grid.range = c(0.5, 0.8),
show.prc.sign = TRUE,
geom.colors = "Greys",
wrap.labels = 80,
values = "show",
show.n = FALSE,
reverse.scale = TRUE) + my_theme

p`