One can call the graphics hist function on a numeric vector or numeric column such as:

  hist(rnorm(1000))

Great! Simple graphs that yield insight are beautiful. What about on a dataframe? Lets take a look at the head of the mtcars dataframe

  knitr::kable(head(mtcars, 10))
  hist(mtcars)
Error: 'x' must be numeric

:(

but wait! now with the visualizethis package one can just pass a dataframe and plot the histograms for all the variables. One can cycle through large dataframes and the function will require user input to display the next batch of graphs. Factors will plot barcharts by default

  library(visualizethis)
  hist(mtcars)


iveksl2/visualizethis documentation built on May 18, 2019, 7:13 a.m.