metan (version 1.2.1)

plot_lines: Fast way to create a line plot

Description

Create a graphic with fitted line based on numerical variables.

Usage

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"
)

Arguments

.data

The data set

x

The variable in data to be shown in the x axis

y

The variable in data to be shown in the y axis

fit

The polynomial degree to use. It must be between 1 (linear fit) to 4 (fourth-order polynomial regression.)

level

The fonfidence level

xlab

The x lab

ylab

The y lab

col

The colour to be used in the line plot and points

alpha

The alpha for the color in confidence band

size.shape

The size for the shape in plot

size.line

The size for the line in the plot

size.text

The size of the text

fontfam

The family of the font text

Value

An object of class gg, ggplot.

See Also

plot_factbars plot_factlines