-
Notifications
You must be signed in to change notification settings - Fork 25
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
show_plot() bars not aligned w/ values below. #39
Comments
Hey @sfd99 thanks for raising the issue! and sorry for the long delay in responding. Although it looks a bit strange once visualised, I think this is the expected behaviour - the histogram binning is carried out by base R's However, I do see the problem, and I think there should be a feature to make it obvious that the histogram doesn't make much sense. I'll have a think and get back if there is an update. thanks again :) |
Hi Alastair, Thanks for the response. Yes, Great PKG... Best, |
I found a starting point https://stackoverflow.com/questions/41486027/how-to-align-the-bars-of-a-histogram-with-the-x-axis Take a look!... Did this Dr, Google query: One of the quoted solutions there, This will center the hist bar data <- data.frame(number = c(5, 10, 11 ,12,12,12,13,15,15)) But there must be better R ways... |
And finally, ggplot(mtcars, aes(x = factor(cyl))) + |
thanks! I think a general solution to this is more complex than it sounds. It's not uncommon to have |
Hi Alastair, Yes, I agree. That rule (your comment above), If it works in a generic way, thanks! |
Hi Alastair,
the inspectdf PKG is really USEFUL!.
But a show_plot() quirk...
try:
See?.
The vertical bars in the CARB plot
are not "aligned" with the unique value markers below,
(in the x-axis).
The bars are all slightly "displaced" to the right...
(not "on top" of the unique CARB values: 4 1 2 3 6 8 ).
Even Zoomming the size of the Rstudio [Plots] Panel
doesn't help.
Same problem with columns for:
AM, GEAR , VS and CYL ...etc
Hope you can help.
Thanks Alastair!
sfd99
San Francisco
latest Rstudio/R/Ubuntu Linux
inspectdf 0.0.11
The text was updated successfully, but these errors were encountered: