plot_numerical_vars: Plot Continuous Variables

Description Usage Arguments Value Author(s) Examples

View source: R/plot_continous_vars.R

Description

Graphical summaries of numerical variables using functions from ggplot2 and GGally.

Usage

1
plot_numerical_vars(x, plot_type)

Arguments

x

Data frame which may include continuous and discrete variables. Non-continuous variables are ignored.

plot_type

Plot type. Current options:

"pairwise"

Calls ggpairs to get plots of pairwise differences. Avoid it if there are too many numerical variables.

"density"

Calls geom_density and geom_rug.

"histogram"

Calls geom_histogram and geom_rug.

"violin"

Calls geom_violin and geom_jitter.

"boxplot"

Calls geom_boxplot.

"qqplot"

Calls stat_qq_line and stat_qq.

Value

A ggplot object.

Author(s)

Guillermo Basulto-Elias

Examples

1
2
3
4
5
6
7
8

gbasulto/rmiscfun documentation built on July 25, 2019, 8:56 p.m.