Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

r ggplot stacked bar labels

ggplot(Data, aes(x = Year, y = Frequency, fill = Category, label = Frequency)) +
  geom_bar(stat = "identity") +
  geom_text(size = 3, position = position_stack(vjust = 0.5))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ggplot #stacked #bar #labels
ADD COMMENT
Topic
Name
2+6 =