plot.ge_reg {metan} | R Documentation |
Plot an object of class ge_reg
Description
Plot the regression model generated by the function ge_reg
.
Usage
## S3 method for class 'ge_reg'
plot(
x,
var = 1,
type = 1,
plot_theme = theme_metan(),
x.lim = NULL,
x.breaks = waiver(),
x.lab = NULL,
y.lim = NULL,
y.breaks = waiver(),
y.lab = NULL,
leg.position = "right",
size.tex.lab = 12,
...
)
Arguments
x |
An object of class |
var |
The variable to plot. Defaults to |
type |
The type of plot to show. |
plot_theme |
The graphical theme of the plot. Default is
|
x.lim |
The range of x-axis. Default is |
x.breaks |
The breaks to be plotted in the x-axis. Default is
|
x.lab |
The label of x-axis. Each plot has a default value. New
arguments can be inserted as |
y.lim |
The range of x-axis. Default is |
y.breaks |
The breaks to be plotted in the x-axis. Default is
|
y.lab |
The label of y-axis. Each plot has a default value. New
arguments can be inserted as |
leg.position |
The position of the legend. |
size.tex.lab |
The size of the text in the axes text and labels. Default
is |
... |
Currently not used.. |
Value
An object of class gg, ggplot
.
Author(s)
Tiago Olivoto tiagoolivoto@gmail.com
See Also
Examples
library(metan)
model <- ge_reg(data_ge2, ENV, GEN, REP, PH)
plot(model)