PlotCorrWithRegrLine | R Documentation |
Scatterplot of pairs of parameters with the corresponding regression line.
PlotCorrWithRegrLine(df, xParam, yParam)
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). |
The function returns a ggplot2 object.
## Not run:
PlotCorrWithRegrLine(sampleA,"CHOL", "HDL")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.