plot_num: Plotting numerical data

Description Usage Arguments Value Examples

View source: R/exploratory_data_analysis.R

Description

Retrieves one plot containing all the histograms for numerical variables. NA values will not be displayed.

Usage

1
plot_num(data, bins = 10, path_out = NA)

Arguments

data

data frame

bins

number of bars (bins) to plot each histogram, 10 by default

path_out

path directory to export the output, if it has a value the plot is saved, if the directory doesn't existis it will try to create it. To save in current directory path must be dot: "."

Value

plot containing all numerical variables

Examples

1
2
3
4
5
6
## Not run: 
plot_num(mtcars)
# changing the bins parameter and exporting the plot
plot_num(data=mtcars, bins=5, path_out="my_folder")

## End(Not run)

Example output

Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package:HmiscThe following objects are masked frompackage:base:

    format.pval, units

funModeling v.1.9.4 :)
Examples and tutorials at livebook.datascienceheroes.com
 / Now in Spanish: librovivodecienciadedatos.ai

funModeling documentation built on July 1, 2020, 5:40 p.m.