ropensci / visdat

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

Cohere other `ggplot2` function? #99

Closed JiaxiangBU closed 5 years ago

JiaxiangBU commented 5 years ago

I am a new user for visdat, which is cool for visualizing data. And I find the plot produced by vis_dat and vis_miss seems from ggplot2.

But I find add other ggplot2 function like labs to the obejct of vis_dat and vis_miss. Is there a way to cohere vis_dat and vis_miss with other ggplot2 function.

JiaxiangBU commented 5 years ago

I work it out ...

njtierney commented 5 years ago

Hi there!

If you'd like to change the labels using labs, you can do the following

library(visdat)

vis_dat(airquality)


library(ggplot2)
vis_dat(airquality) + 
  labs(x = "Change the x axis label",
       y = "Change the y axis label")

Created on 2018-11-04 by the reprex package (v0.2.1)

Let me know if you've got any questions about this, I'm going to close the issue for now.