ropensci / visdat

Preliminary Exploratory Visualisation of Data
https://docs.ropensci.org/visdat/
Other
450 stars 47 forks source link

How to change the size of columns name and percentage when using vis_miss()? And how to rotate the plot title according to this plot? #63

Closed koliajaykr closed 6 years ago

koliajaykr commented 6 years ago

Your package is very useful. Just I was not able to find out how to reduce the top clutter in the attached plot

screenshot from 2018-01-05 11-45-17

njtierney commented 6 years ago

Good question, this is a tricky issue, I think I'll have to build in some sensible defaults that cut off the axis labels, but knowing at which size to do this could be a bit tricksy. This should be looked at in the next feature release.

RE rotating the plot, you should be able to do this:

library(ggplot2)
visdat::vis_miss(airquality) + 
  labs(title = "Figure 1 - missingness of Airquality data")

Created on 2018-02-11 by the reprex package (v0.2.0).

koliajaykr commented 6 years ago

Thank you @njtierney for replying my question. I guess you are suggesting me to plot it in landscape. I already plot the figure in landscape. Did I understand your suggestion correctly?

njtierney commented 6 years ago

Ah, my apologies, I had thought that you were asking about how to move the figure title, in addition to your comment about the cluttered labels - are you asking about the figure caption?

koliajaykr commented 6 years ago

Thanks for your suggestion for figure caption. It seems that figure caption is okay except its layout. My main issue is with the cluttered labels in the plot.

njtierney commented 6 years ago

Thanks for posting this issue - trying to fix the text clutter is a tricky topic, and I think it is important to address.

I'm going to close this issue now, as the text clutter issue is discussed in #9