I'm trying to create a header for my graph pages with the text being bold. The code I'm using is below, I set fontface=bold but this doesn't seem to be working. Is there somewhere else I need to set it as well?
t = textGrob(expression(underline("My Sample Header")),gp=gpar(fontfamily="serif",fontsize=16, fontface="bold",lineheight=1),vjust=.3,hjust=2.15)
Since no one has answered this, you could do this two ways:
Method 1: Use expressions but do
expression(bold(underline(...)))
like:Method 2: Write a wrapper function which combines the
textGrob
with a line (probably a better option):