Skip to contents

Graph of the fitted model with a point color scale.

Usage

fn_fig_cs(df, opacity, tint, scale, etiquetas, modelos, i)

Arguments

df

A data frame contains the following variables: independent (x) and dependent (y) variables, the fitted variable (fitt), a weighted variable (wi), and additional details including the weights (wi), fitted values (fitt), residuals (ei), and the scale.

opacity

A numeric value for the alpha aesthetic used to control the transparency of elements in a plot.

tint

A vector that specifies the palette colors used to color the points.

scale

A numeric vector that defines the thresholds for coloring the points.

etiquetas

A list indicating the labels of the axes and their unit of measurement.

modelos

A list of variables that are used for the regression model.

i

An integer value indicating the regression analyzed.

Value

An individual plots for fitted models with a point color scale.

Details

This function creates a graph displaying the fitted model (line) alongside the observed values (points), which are colored according to a weighted color scale.

Examples

if (FALSE) { # \dontrun{
df <- df
p <- fn_fig_cs(df, opacity, tint, scale, etiquetas, modelos, i)
} # }