[R] boxplot( ) headers with Greek letters, values, and text

cameron.bracken cameron.bracken at gmail.com
Mon Aug 3 20:04:11 CEST 2009



Johnson, Roger W. wrote:
> 
> Any suggestions on how I can produce the same title using the boxplot
> command?
> 

If you use LaTeX you could try the tikzDevice package (
https://r-forge.r-project.org/projects/tikzdevice/ ).  In that case you
would use:

main = paste('\\mu =',mu,', \\lambda =',lambda,', truncation =',truncation,
', N_T =',n)

a full example is:

tikz('myplot.tex')
boxplot(rnorm(100), main = paste('\\mu =',mu,', \\lambda =',lambda,',
truncation =',truncation, ', N_T =',n))
dev.off()

And in a tex file:

\documentclass{article}
\usepackage{tikz}
\begin{document}
    \begin{figure}
        \centering
        \input{myplot.tex}
        \caption{}
    \end{figure}
\end{document}


and the symbols would get typeset by latex. 

- Cameron 

P.S. I am one of the authors of this package, so this post is a bit self
serving but we just released a beta version and are trying to get the word
out. 


-- 
View this message in context: http://www.nabble.com/boxplot%28-%29-headers-with-Greek-letters%2C-values%2C-and-text-tp24785201p24795386.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list