DataExplorer icon indicating copy to clipboard operation
DataExplorer copied to clipboard

Multi-page plots squeezed into single presentation page

Open pat-s opened this issue 7 years ago • 5 comments

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].

pat-s avatar Sep 21 '18 16:09 pat-s

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?

boxuancui avatar Sep 21 '18 23:09 boxuancui

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.

pat-s avatar Sep 23 '18 20:09 pat-s

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 avatar Sep 24 '18 15:09 boxuancui

Thanks for the quick reply and the information.

pat-s avatar Sep 24 '18 20:09 pat-s

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 avatar Oct 15 '18 20:10 boxuancui