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

Documentation for {frame_time} #392

Open
SimonDedman opened this issue May 12, 2020 · 3 comments
Open

Documentation for {frame_time} #392

SimonDedman opened this issue May 12, 2020 · 3 comments

Comments

@SimonDedman
Copy link

SimonDedman commented May 12, 2020

Hi Thomas,

I was wondering if you wouldn't mind noting down some examples of {frame_time} usage in the gganimate home page or elsewhere, given how atypical a construction it is. It's referenced in a few examples littered around the web but not in the official docs as far as I can see. Your comment here is probably the most useful. I was trying to coerce a monthly transition into month names, for example, and it took me a lot of attempts to work out it should be
ggtitle(paste0("Month = {month.abb[frame_time]}"))

Similarly if there are other instances of the {code as character} construction that would be great to discuss. Thanks in advance!

@SimonDedman SimonDedman changed the title Documentaion for {frame_time} Documentation for {frame_time} May 12, 2020
@psteinb
Copy link

psteinb commented Jun 17, 2020

I found comments on it here. Indeed, the use could be made explicit in the examples.

@thomasp85
Copy link
Owner

The main reason why this has not been documented so well is that it is not really part of any specific function, but simply glue syntax... I'd be happy to add some info on this however. Where would you expect to find this information

@SimonDedman
Copy link
Author

Hi Thomas,

Maybe a brief note in labs, or similar? Or maybe a general note in Details, explaining it's glue syntax, maybe giving a link to any good glue resources you know, and then putting an example in the Examples, and/or potentially linking to that other Issue?

Cheers!

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

No branches or pull requests

3 participants