Learn R Programming

LDLcalc (version 2.1)

PlotCorrWithRegrLine: Scatterplot of pairs of parameters

Description

Scatterplot of pairs of parameters with the corresponding regression line.

Usage

PlotCorrWithRegrLine(df, xParam, yParam)

Value

The function returns a ggplot2 object.

Arguments

df

The data frame with the parameterrs to be plotted

xParam

The parameter (column name) to be plotted in the abscissa (x axis).

yParam

The prameter (column name) to be plotted in the ordinate (y axis).

Examples

Run this code
if (FALSE) {
PlotCorrWithRegrLine(sampleA,"CHOL", "HDL")
}

Run the code above in your browser using DataLab