strengejacke / sjPlot

sjPlot - Data Visualization for Statistics in Social Science
https://strengejacke.github.io/sjPlot
603 stars 91 forks source link

aligning percentages on `plot_likert()` #808

Open dinanajiarch opened 2 years ago

dinanajiarch commented 2 years ago

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`

dinanajiarch commented 2 years ago

example