ropensci / visdat

Preliminary Exploratory Visualisation of Data

Home Page:https://docs.ropensci.org/visdat/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cohere other `ggplot2` function?

JiaxiangBU opened this issue · comments

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.

I work it out ...

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.