An R package for exploring your data.
devtools::install_github("justinmarschall/vasco")
vasco
leverages purrr
and ggplot2
to iterate through an entire data frame, producing plots for all variables of a given type.
There are four main functions in the vasco library:
plot_density()
plot_histogram()
plot_scatter()
plot_bar()
Each function works in the same way--pass a data frame to the function, and vasco
will return n plots, given the number of numeric or categorical variables. For data frames with greater than 50 variables, pass parameter n
to a plot_*()
function to override the max plot threshold. It's recommended to write many plots to PDF to improve readability.
plot_density(iris)
plot_histogram(iris)
plot_scatter(iris)
plot_bar(iris)
setwd("U:/your_file_path")
pdf("your_file_name.pdf", width = 14, height = 8.5)
purrr::map_dfc(1:60, rnorm, n = 100, sd = 1) %>%
plot_density(n = 60)
dev.off()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.