#' mkhist() function to create
#' histograms from df variables
#' @export
mkhist <- function(x){
print(x %>% head())
x %>% gather() %>% head()
ggplot(gather(x), aes(value)) +
geom_histogram(bins=20) +
facet_wrap(~key, scales='free_x')
ggsave("df_histogram.png")
ggsave("df_histrogram.pdf")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.