Create a graphic with fitted line based on numerical variables.
plot_lines(
.data,
x,
y,
fit,
level = 0.95,
xlab = NULL,
ylab = NULL,
col = "red",
alpha = 0.2,
size.shape = 1.5,
size.line = 1,
size.text = 12,
fontfam = "sans"
)
The data set
The variable in data to be shown in the x axis
The variable in data to be shown in the y axis
The polynomial degree to use. It must be between 1 (linear fit) to 4 (fourth-order polynomial regression.)
The fonfidence level
The x lab
The y lab
The colour to be used in the line plot and points
The alpha for the color in confidence band
The size for the shape in plot
The size for the line in the plot
The size of the text
The family of the font text
An object of class gg, ggplot
.