How can I generate a title like this for sjp.grpfrq function?
As example, I can generate a text like that with:
plot.new()
a <- TeX(sprintf("%s (%s, $N_{HIGH}$=%d/$N_{TOTAL}$=%d)", "Whatever", "Blah", 10, 20))
text(0.5,0.5,a)
But I cannot use something like this:
sjp.grpfrq(age.group, var.group, showValueLabels = FALSE, title = a)
Because I get the following error:
Error in title == "" : comparison is not allowed for expressions
So, how can I generate a title that have subscripts expressions in it?