I am plotting a 3D histogram using hist3D()
, and want to change xlab
so that it includes a Greek letter with a subscript.
I used
xlab=expression(theta[1]).
It doesn't work, and I just get the string "theta[1]" in the label. It works fine, on the other hand, for just the regular plot command.
So how can I introduce subscripted Greek letters to hist3D()
plots?
(hist3D()
is in the plot3D library)
The
hist3D
function does not accept expressions for axis labels. One workaround is to use the Unicode character for theta, θ.This displays a theta symbol but no subscript 1.