You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See original post here where the author of latex2exp tracked the issue to arise from the httpgd plot renderer.
When plotting using httpgd and latex2exp, LaTeX expressions are missing spaces and are distorted. Doing the same plot in the normal R png renderer yields the expected result.
To reproduce in a vanilla R terminal:
library(httpgd)
library(latex2exp)
hgd()
plot(TeX(r'($\alpha$ and also $\beta$)'))
yields this:
instead of this :
library(latex2exp)
plot(TeX(r'($\alpha$ and also $\beta$)'))
The text was updated successfully, but these errors were encountered:
Thanks for opening the issue.
I am very busy currently due to moving, but could you try to replicate the plot with svglite ( https://github.com/r-lib/svglite )?
Most of the font rendering code in httpgd is based on it.
Hello,
See original post here where the author of
latex2exp
tracked the issue to arise from thehttpgd
plot renderer.When plotting using
httpgd
andlatex2exp
, LaTeX expressions are missing spaces and are distorted. Doing the same plot in the normal R png renderer yields the expected result.To reproduce in a vanilla R terminal:
yields this:
instead of this :
The text was updated successfully, but these errors were encountered: