Description Usage Arguments Value Examples
View source: R/numerical_eda.R
This function takes in a tibble or dataframe object, two numeric columns, and produces either a scatter or line plot to visualize the relationship between the two numerical features. Users can optionally change default arguments for plot-type, color, title, size of text, color-scheme, and toggle log transformation for the x and y axis.
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
A tibble or data frame object. |
xval |
A numeric variable used to represent the x-axis. |
yval |
A numeric variable used to represent the y-axis. |
color |
A character variable used to group the data points in different colors. |
title |
An optional character variable used to set the title and axis. |
plot_type |
An optional character variable used to represent the graphical relationship between xval and yval, options are "scatter" or "line" plot. |
font_size |
An optional integer variable used to set the font size. |
color_scheme |
An optional character variable used to set the color scheme |
x_transform |
An optional logical, whether a log transformation occurs on the x-axis. |
y_transform |
An optional logical, whether a log transformation occurs on the y-axis. |
numerical_plot A ggplot2 object. The numerical plot.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.