Hi Georg,
If you remove the coord_polar, you'll see that the optimal y-value for the
labels is between the upper and lower bound of the stacked bar-element.
I am not sure it is the most elegant solution, but you can calculate them
like this:
df <- data.frame(group = c("Male", "Female", "Child"),
Hi All,
I have a question to ggplot 2. My code is the following:
-- cut --
library(ggplot2)
library(scales)
df <-
data.frame(group = c("Male", "Female", "Child"),
value = c(25, 25, 50))
blank_theme <- theme_minimal() + theme(
axis.title.x = element_blank(),
axis.title.y = el
2 matches
Mail list logo