Here is something that might get you started.
First off, let's generate some minimal sample data
df <- data.frame(
Extraversion = 12,
Intraversion = 40)
We then reshape the data and add a total 100% column
library(tidyverse)
df <- df %>%
gather(key, val) %>%
mutate(
key = factor(key, rev(unique(key))),
Total = 100)
We define a convenience function that produces the text inside the "progress bar"
format_value <- function(key, val) {
qual <- c("very low", "low", "average", "high", "very high", "max")
sprintf(
"%s - %ith percentile - %s",
key, val, qual[findInterval(val, seq(0, 100, by = 20))])
}
Now we're ready to plot
ggplot(df, aes(key, val)) +
geom_col(fill = "forestgreen") +
geom_col(aes(y = Total), alpha = 0.5, colour = "black") +
geom_text(
aes(y = 5, label = format_value(key, val)),
hjust = 0,
fontface = "bold",
colour = "white") +
coord_flip() +
theme_minimal() +
theme(
axis.title = element_blank(),
axis.text = element_blank(),
axis.ticks = element_blank(),
panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
panel.background = element_blank())
