README.md

vasco

An R package for exploring your data.

Installation

devtools::install_github("justinmarschall/vasco")

Purpose

vasco leverages purrr and ggplot2 to iterate through an entire data frame, producing plots for all variables of a given type.

Usage

There are four main functions in the vasco library:

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.

Numeric Variables

plot_density(iris)

plot_histogram(iris)

plot_scatter(iris)

Categorical Variables

plot_bar(iris)

Plotting Many Variables

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()


justinmarschall/vasco documentation built on May 9, 2020, 11:52 a.m.