Skip to contents

num_dist_scatter Creates a scatter plot given two numerical features.

Usage

num_dist_scatter(num1, num2, data, title = "", stat = FALSE, trend = FALSE)

Arguments

num1

A string for the name of the column for the first numeric feature.

num2

A string for the name of the column for the second numeric feature.

data

A dataframe for visualization.

title

A string for the title for the chart.

stat

Boolean whether or not to include simple statistics.

trend

A string for the type of trend line. Options are: FALSE, 'lm', 'loess'.

Value

A ggplot scatter plot object @examples num_dist_scatter( num1='num1', num2='num2', data=df, title='num1 v num2', stat = TRUE, trend='lm' )