Description Usage Arguments Details Value Examples
This functions plots model fit using ggplot.
1 2 | ## S3 method for class 'lmfit'
ggplot(x, y, ..., environment = parent.frame())
|
x, y |
Two vectors |
... |
Other arguments passed on to methods. Not currently used. |
environment |
If an variable defined in the aesthetic mapping is not
found in the data, ggplot will look for it in this environment. It defaults
to using the environment in which |
Visualization of linear fit (y = ax + b), using scatter plots and with regression line, as well as added details of regression equation and R^2.
p |
Returns a ggplot object. |
1 2 3 4 | library(visa)
x <- 1:10
y <- 2:11+0.5
ggplot.lmfit(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.