Description Usage Arguments Value Author(s)
Handy scatter plot using ggplot2 that can display regression calculated by lmodel2.
1 2 3 |
data |
A data frame. |
x, y |
What to plot as x and y variable. |
method |
Which regression analysis to calculate. There are three methods
to choose: "OLS"(ordinary least square), "MA"(Major Axis) and "SMA"
(Standardised Major Axis or known as Reduced Major Axis). There are
calculated using the |
mod.line |
Should 1:1, 2:1 and 1:2 lines be drawn. Default is |
group |
The column name by which the data should be grouped. |
same.panel |
Should all the groups be plotted in the same panel.
Default is |
xpos, ypos |
The relative x and y positions where the regression equations should be added. This should be a value between 0 and 1. This value multiples the maximum of the x or y limit gives the (x, y) coordinates of the annotation. |
pt.col, pt.shape |
The colour and shape of the points if only 1 group is plotted. |
... |
Arguments passed to |
A ggplot2 object
Hao Wu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.