-
Notifications
You must be signed in to change notification settings - Fork 56
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
ggplot2::ggsave()
error with pointblank::scan_data()
#515
Comments
You get that error because the data has 34 rows and 268 columns, and some of the plots automatically generated by If you only want sections from |
I think it might be good here to introduce a limit (maybe 10?) on the number of columns used in these parts of the scan data report. This will at least make the function work w/o failing on the default options. On top of this, it would be useful to have a The eventual goal, I think, is to have these report sections become a bit more scalable with larger amounts of data (perhaps using gt to arrange things, so you'd get scrolling and not these very tiny subplots). |
ggplot2::ggsave()
error with pointblank::scan_data()
Anyone find any workaround for this, or a way to supply the I think it would be really useful for a tool like |
@SpikyClip Thanks for this perspective - it's helpful to know that As Rich mentioned above, We could patch in a workaround for letting users supply the Happy to hear any suggestions on this! |
I see, that makes sense. What if, past a certain arbitrary number of columns, it renders the plot data as a filterable data table rather than a plot? Would still allow the user to view the key information if necessary (e.g. which columns have the most NA values, which columns correlate the most), and it'll hopefully catch the ggsave error. I don't think(?) the underlying tables would take up too much space but it may require testing. |
Prework
Description
Error triggered when executing scan_data() on a data.table object with 34 rows and 268 columns:
Error in
ggplot2::ggsave(): ! Dimensions exceed 50 inches (
heightand
widthare specified in inches not pixels). ℹ If you're sure you want a plot that big, use
limitsize = FALSE. Run
rlang::last_trace()to see where the error occurred.
rlang::last_trace() Output:
Reproducible example
Expected result
scan_data() should have returned the HTML output.
Session info
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)
The text was updated successfully, but these errors were encountered: