powered by
Scatterplot of pairs of parameters with the corresponding regression line.
PlotCorrWithRegrLine(df, xParam, yParam)
The function returns a ggplot2 object.
The data frame with the parameterrs to be plotted
The parameter (column name) to be plotted in the abscissa (x axis).
The prameter (column name) to be plotted in the ordinate (y axis).
if (FALSE) { PlotCorrWithRegrLine(sampleA,"CHOL", "HDL") }
Run the code above in your browser using DataLab