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)
:(
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.