Hello, R friends,
 
I've got this graph:

p <- ggplot(diamonds, aes(x = color))  + scale_fill_brewer(type="seq", pal = 
"Blues")
  + scale_y_continuous("",formatter="percent") + coord_flip()
p+geom_bar(aes(fill=cut),colour='black',position='fill')
 
Is it possible to place percentages within each field of the bars?
So, for instance, the dark blue field of color = "D" would contain a number of 
about 42.0%.
A second question is how to change the size of this number.
 
Any comments are welcome!
Mario
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to