-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
plot.xts axis only shows two labels #246
Comments
BTW I tried to research this in old issue tickets and did not see it posted. My bad if I missed one. /cc @rossb34 |
Thanks for the report. This has bothered me too, but never enough to take a look. Seems like the solution could be as simple as setting |
That helps indeed. The documentation on those options and these values is a bit ... sparse. |
I agree with @joshuaulrich that setting the default arguments to "auto" for the grid and axis ticks is a good solution. The default is "months" which is only reasonable for several months of data on a daily or lower frequency.
|
@eddelbuettel thanks for the note on documentation. I'll add language to improve the documentation. |
I am also looking at what |
One possible problem: xts objects are often irregularly spaced, which means there could easily be no observations where you would want to place a tick mark based on the logic in |
Casual usage of both over the last couple of days with generally irregular data has I am sure there are counter-examples. I have not yet hit any. I'll follow up if I do. |
Description
The x-axis annotation is somewhat overly sparse on irregular data
Expected behavior
I would expect the usual four to five ticks to be shown
Minimal, reproducible example
The image comes from running the example which requires the package. The same effect appears
just with the code not commented out here
will re-create the same plot shown on the repository README.md and here:
Session Info
Current CRAN versions of everything.
The text was updated successfully, but these errors were encountered: