-
Notifications
You must be signed in to change notification settings - Fork 8
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
Possible to remove also the axes when frame=FALSE and grid=TRUE? #182
Comments
Thanks for the kind words @pglpm. RE: your FR. It's definitely something I'd like to support (and have wanted to for a while). What we'd need to do is settle on a consistent argument interface. I think P.S. A broader goal for the next release of |
If Instead of using |
Good points @zeileis. We actually don't support So, is your thinking that we should support a |
My idea was to just go through However, compatibility with
Given that compatibility with S is not important anymore, we could decide to give a different meaning to Last remark: While |
How about:
? |
And maybe also Internally, I would use something like:
|
That looks great @zeileis. Do you want to put in a PR? Otherwise, I'll try to find some time over the weekend. |
That will be fantastic! Regarding which option to use for omitting the axes, I'm happy with any of the proposals I'm seeing :) Thank you all! |
I can try. The missing part is, of course, how to actually support this in the Also, currently the default is |
No, I think that should be be the only place.
Ah, good catch. The latter option of |
OK, thanks. I have prepared PR #190 now. I've left the default of |
PierGianLuca @pglpm with PR #190 merged, you can now do:
I think this resolves the main issue that you raised. I don't see an easy built-in way, though, to change the number of ticks on the x- and y-axis (like in your plot) and keeping the grid aligned with it. Maybe Grant @grantmcdermott has an idea for this. |
This is a very cool feature @zeileis well done! |
I think the best way is just to fiddle with library(tinyplot)
op = tpar(las = 1, lab = c(10,10,7))
x = 0:100/10
tinyplot(x, sin(x), type = "l", col = "steelblue", axes ="labels", grid = grid(lty = "solid")) tpar(op) Created on 2024-08-03 with reprex v2.1.1 |
Nice! Maybe put this example somewhere for reference? |
Thank you for this fantastic lightweight plot function!
It's very close to something I wrote for my own use, so I'd be happy to switch to tinyplot, which is more carefully developed and maintained :)
I was wondering if there's an option to eliminate the thick axes bars completely when one has
frame = FALSE
andgrid = TRUE
, as in the enclosed screenshot.If not, could this be added to the wishlist? :)
The text was updated successfully, but these errors were encountered: