Comments (3)
Thanks again for the original report. I've now pushed a change that should allow sorting and filtering of the outputs of inspect_cat()
to be respected by the downstream show_plot()
call.
from inspectdf.
Hi @RoelVerbelen. I think the issue of using arrange()
causing the downstream plot to have distorted label was fixed by a previous commit. Please let me know if it hasn't.
You also point out that if jsd
is NA
that the column comparison is dropped from the graphic. I'm curious about the cases that might have caused this to happen - did you see a specific instance of this? One case where this happens is where the column has different types in the two data frames, in which case I think dropping from the graphic could make sense. But that may not be true in general...
Once again, thanks for the feedback and reports 😊
from inspectdf.
Thanks again @alastairrushworth. In latest commit version, the labels are back but the arranging is completely ignored. Plotting is always done with the variable names sorted alphabetically. What would be the recommended approach to reorder the variables on the y-axis based on their corresponding jsd
value?
I don't remember unfortunately how I ended up getting missing values for jsd
before. I tried creating examples for the starwars
data where one version of the data has 0 observations for some factor levels, thinking it would cause a division by 0 or log(0) in the jsd
formula, but these scenarios seem to set it to 1. Also the trivial example where a factor is always missing resulted in a jsd
of 1. I'll create a new issue if I run into missing values for jsd
again.
from inspectdf.
Related Issues (20)
- Bug: `inspect_imb()` fails on factor columns HOT 1
- label_size, label_angle & label_color to work for comparison plots
- show_ggplotly
- change white color for last (or second) factor. HOT 2
- travis --> GitHub actions
- improve jsd statistic for comparison
- type comparison to include names and types, new plots
- Improvements to inspect_cat
- inspect_cat and comparison plots HOT 1
- show_plot() bars not aligned w/ values below. HOT 6
- inspect_num: inconsistent binning of numerical variables in comparisons HOT 1
- inspect_num %>% show_plot fails on grouped dataframe with Error object 'mid' not found HOT 1
- inspect_num show_plot error HOT 1
- Partial argument match of 'unit' to 'units'
- Change to new cran checks badge URL HOT 1
- [New Functionality] "inspect_num()" add parameter to define number of columns.
- Bug: `inspect_num()` not able to deal with different ranges in `df2`
- Change in expected plot from v0.0.9 and v0.0.12
- Wish for ordered categories
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inspectdf.