Learn R Programming

funModeling (version 1.6.6)

plotar: Correlation plots

Description

Visual correlation analysis. Plot different graphs in order to expose the inner information of any numeric variable against the target variable

Usage

plotar(data, str_input, str_target, plot_type, path_out)

Arguments

data

data frame source

str_input

string input variable (if empty, it runs for all numeric variable), it can take a single character value or a character vector.

str_target

string of the variable to predict, it supports binary or multinominal values.

plot_type

Indicates the type of plot to retrieve, available values: "boxplot" or "histdens".

path_out

path directory, if it has a value the plot is saved

Value

Single or multiple plots specified by 'plot_type' parameter

Examples

Run this code
# NOT RUN {
## Run for all numeric variables
plotar(data=heart_disease, str_target="has_heart_disease",
	plot_type="histdens")
plotar(heart_disease, str_input = 'age', str_target = 'chest_pain', plot_type = "boxplot")
# }

Run the code above in your browser using DataLab