Takes similar named variables and produces a matrix of scatterplots and their correlation coefficients to E.Coli.

correlation_scatterplot(df, ...)

correlation_values(df, ...)

Arguments

df

data.frame with data for e.coli and chosen variables in lagdays

...

Arguments passed to stats::cor

Value

Plotting function. Returns a plot.

Returns correlation values.

Functions

  • correlation_values: Internal function

Examples

correlation_values(data.frame(datum = rep("egal",10), e.coli = 1:10, var = 1:10), variable = "var")
#> Error in stats::cor(x = df[, 1], y = y, use = "pairwise.complete.obs", ...): unused argument (variable = "var")