I would like the following TikZ qtree to come out symmetric:
\documentclass{article}
\usepackage{tikz-qtree}
\begin{document}
\Tree[.O [.N O R ] [.O N \fbox R ] [.R N O ]]
\end{document}
(so that, in particular, the edge from the root to its child 'O' is vertical). Since
\documentclass{article}
\usepackage{tikz-qtree}
\begin{document}
\Tree[.O [.N O R ] [.O N R ] [.R N O ]]
\end{document}
is symmetric, obviously it's the \fbox that's preventing this; so I thought that something like:
\documentclass{article}
\usepackage{tikz-qtree}
\begin{document}
\Tree[.O [.N O R ] [.O N {\smash{\fbox R}\phantom R} ] [.R N O ]]
\end{document}
would work, but it seems actually to be worse. (I think that this doesn't really have anything to do with qtree, which is why I didn't put it in the tags, but I couldn't think up an equivalent example without it.)
(EDIT: Per @DavidCarlisle's advice, I made all code snippets compile-able.)

\smashonly hides the height not the width so\smash{\fbox R}\phantom Ris more than twice as wide asRyou may prefer\frame{R}to\fbox{R}– David Carlisle Feb 04 '14 at 21:20\frame? – LSpice Feb 04 '14 at 21:32\fbox R(which\frame Rdoesn't seem to be), but that is perceived byTeXas having the height and width of an undecoratedR. I did see Gonzalo's answer, which accomplishes the effect that I want; but is there any general command that forces a box to be treated as having 0 height and width? – LSpice Feb 04 '14 at 21:41\makebox(0,0){foo}(the round bracket form is mainly used in picture environment but works generally and allows specification of height and depth, to 0 here) – David Carlisle Feb 04 '14 at 21:43\smash{\fbox R}by\makebox(0,0){\fbox R}in my example, I see that I should prefer Gonzalo's example because it handles the spacing correctly. – LSpice Feb 04 '14 at 21:57