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

nanotime and ggplot2? #21

Closed
randomgambit opened this issue May 2, 2017 · 4 comments
Closed

nanotime and ggplot2? #21

randomgambit opened this issue May 2, 2017 · 4 comments

Comments

@randomgambit
Copy link

Hi @eddelbuettel, thanks for this amazing package!

Nanotime support is clearly what we need at the moment. I am wondering if your package is compatible with ggplot2.

Can I create charts that have an x-axis with timestamps up to nanoseconds? Are there any particular issues?

Thanks!

@eddelbuettel
Copy link
Owner

Sure. You will need to write a custom format routine to do that. For POSIXct we get this for free because R natively supports, for extensions we have to do it by hand (and eventually integrate it). This is no different for nanotime than it is for other time package such as chron which are not using POSIXct. Or for packages extending POSIXct such as xts -- you could start by looking at plot.xts.

@randomgambit
Copy link
Author

thanks, so you are saying that if my timestamps look like
2014-01-01 20:05:05.12345678 I should be able to nanotime() them and then use in ggplot directly?

@eddelbuettel
Copy link
Owner

No, that was not what I said.

@randomgambit
Copy link
Author

ha! sorry then, coming from Python I am not 100% familiar with all the terminology. I dont understand when you say For POSIXct we get this for free because R natively supports, for extensions we have to do it by hand (and eventually integrate it)

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

2 participants