Hi folks, I'm having trouble getting a little latex expression to display correctly in a base R plot. I want V\bar_N, which is to say \bar{V}_{N}. When I do
plot(1,1,main = TeX("V\\bar_N"))
I get
for the title. I can't figure out how to get the bar and what I'm doing also kills the subscript.
If you want to use TeX(), then the expression should be within $$.
Hence TeX("$\\bar{V}_N$") will do the job.
The advantage is that you can plug in tex-expressions directly.
In most occasions this works fine.