Skip to content
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

Multi-page plots squeezed into single presentation page #80

Open
pat-s opened this issue Sep 21, 2018 · 5 comments
Open

Multi-page plots squeezed into single presentation page #80

pat-s opened this issue Sep 21, 2018 · 5 comments
Assignees
Labels
social: help wanted I would love to hear ideas to solve this type: bug Existing features not working as expected

Comments

@pat-s
Copy link

pat-s commented Sep 21, 2018

For datasets with many features, multiple pages are returned.

When visualizing in presentation format, it would be neat to be able to plot page by page to fit the slides. Currently one needs to subset the dataframe by hand, e.g. data[, 1:15] and data[, 16:30].

@boxuancui
Copy link
Owner

Would you mind providing more information? E.g.,

  • What do you use for presentation?
  • What is the current behavior in your presentation? Multiple DataExplorer pages squeezed into a presentation page?

@pat-s
Copy link
Author

pat-s commented Sep 23, 2018

What do you use for presentation?

PDF (beamer). But I guess the behaviour is the same for all presentation tools in R

What is the current behavior in your presentation? Multiple DataExplorer pages squeezed into a presentation page?

Yep, exactly.

@boxuancui
Copy link
Owner

Inspired by this SO post: Looks like all we need is a line break after each plot. I will test it out when I have a chance.

FYI, super busy with work and personal life for 2nd half of 2018. You might have to manually subsetting your DFs for a while. If I may, this might be helpful for you, maximum plots per page by chart type:

  • bar/scatterplot/prcomp: 9L
  • boxplot: 12L
  • histogram/density: 16L

@boxuancui boxuancui self-assigned this Sep 24, 2018
@boxuancui boxuancui added the type: enhancement Improvement on an existing feature label Sep 24, 2018
@boxuancui boxuancui added this to the v0.7.0 milestone Sep 24, 2018
@pat-s
Copy link
Author

pat-s commented Sep 24, 2018

Thanks for the quick reply and the information.

@boxuancui boxuancui changed the title Option to plot only specific pages Multi-page plots squeezed into single presentation page Sep 26, 2018
@boxuancui
Copy link
Owner

boxuancui commented Oct 15, 2018

This is more difficult than I expected. I tried adding line breaks, forcing grid.newpage(), etc. Multi-page plots are still squeezed into one page. At least they don't work with HTML-based presentation modes. I will move this out of v0.7.0 release, since I don't see a near-term solution.

To make presentation mode slightly easier (still not ideal I admit), I have added ncol and nrow to all eligible plotting functions (#85), so that when you subset your data, you can at lease not hard-code those indices.

I will still keep this in mind, and hopefully fix this soon.

@boxuancui boxuancui added type: bug Existing features not working as expected social: help wanted I would love to hear ideas to solve this and removed type: enhancement Improvement on an existing feature labels Oct 15, 2018
@boxuancui boxuancui removed this from the v0.7.0 milestone Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
social: help wanted I would love to hear ideas to solve this type: bug Existing features not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants