0

I would like to bold the summary of my stats that I will be putting at the top of the bar. This code takes the values in the stacked bar and puts their sum at the top.

Here is the code:

stat_summary(fun.y = sum, aes(label = ..y.., group = Week, col = "#FF4500"), geom = "text", vjust = -.5) 

Does anyone have any suggestions?

Preston
  • 7,399
  • 8
  • 54
  • 84
Colin
  • 3
  • 4
  • 1
    Can you add an example dataset so we can run the code? See [here](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) for some ideas on including a reproducible example in your question. – aosmith Feb 01 '18 at 16:47
  • You might be able to use `fontface = "bold"` – aosmith Feb 01 '18 at 16:50
  • Yes, `fontface="bold"` will work inside `stat_summary`. – eipi10 Feb 01 '18 at 16:55
  • Thank you everyone, fontface worked. I am surprised I was not able to find it. Simple solution! – Colin Feb 02 '18 at 17:47

0 Answers0