Probably a very simple problem:
I want to annotate a plot axis with a name of my data using expression(). The name for the data is $\hat P4_k$ written in LaTex style -> hat symbol above P, followed by a 4 and a subscripted k index I tried to write this using x<-c(1,2,3,4) y<-c(3,5,7,9) plot(x,y,xlab=expression(hat(P4[k])) ) but cant find a way to force the hat symbol to be located only above the P symbol and not above the 4 symbol. I have spent some time looking up ?expression, ?plotmath as well as some other R docu but cannot find a way. Any help is greatly appreciated. Regards, toby [[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.