Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gganimate doesn't correctly render text in expression() #506

Open
moondog1969 opened this issue Dec 11, 2024 · 0 comments
Open

gganimate doesn't correctly render text in expression() #506

moondog1969 opened this issue Dec 11, 2024 · 0 comments

Comments

@moondog1969
Copy link

Plotmath text with expression() is not working on axes in animations. For instance, the 2 is not super-scripted for the equation on the y-axis label in the plot below.

ggplot(mtcars, aes(mpg, disp)) +
geom_point(aes(color = gear)) +
transition_states(gear, transition_length = 2, state_length = 1) +
enter_fade() +
ylab(expression(E = mc^2)) +
exit_fade()

I'm using:
R version 4.4.2 (2024-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 17134)

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant