ropensci / visdat

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

vis_dat(diamonds) shows an empty plot (only light gray lines are visible) #132

Closed sfd99 closed 2 years ago

sfd99 commented 3 years ago

Hi, always loved using VISDAT.

But now: vis_dat(diamonds) shows an empty visdat plot! (only a tenuous grid w/ light gray lines is visible...no colors).

vis_dat(iris) vis_dat(airquality) are both OK!.

Issue looks identical to Issue #32: "Blank plot with grid lines shown #32"

UPDATE: Downsampled the number of rows in diamonds and visdat works ok:

diamonds %>% slice(1:1000) %>% vis_dat()

Suggestion: would be VERY nice if visdat would "downsample" / "slice" the number of rows of a large DF automatically.

This would avoid presenting the (startled) user an empty plot, w/o any warning...

Just a suggestion of a long-time fan of VISDAT! :-)

SFd99 latest versions of: visdat pkg 0.6.0.9000 (installed via devtools) Ubuntu Linux 20.04 64bits R 4.0.3 Rstudio 1.3.1073

njtierney commented 2 years ago

Hi there! This is a duplicate of #32 - unfortunately it is a bit tricky to solve!