plot.ge_effects: Plot an object of class ge_effects

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ge_effects.R

Description

Plot the regression model generated by the function ge_effects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'ge_effects'
plot(
  x,
  var = 1,
  plot_theme = theme_metan(),
  x.lab = NULL,
  y.lab = NULL,
  leg.position = "right",
  size.text = 12,
  ...
)

Arguments

x

An object of class ge_effects

var

The variable to plot. Defaults to var = 1 the first variable of x.

plot_theme

The graphical theme of the plot. Default is plot_theme = theme_metan(). For more details, see ggplot2::theme().

x.lab

The label of x-axis. Each plot has a default value. New arguments can be inserted as x.lab = "my label".

y.lab

The label of y-axis. Each plot has a default value. New arguments can be inserted as y.lab = "my label".

leg.position

The position of the legend.

size.text

The size of the text in the axes text and labels. Default is 12.

...

Current not used.

Value

An object of class gg, ggplot.

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

See Also

ge_plot()

Examples

1
2
3
library(metan)
ge_eff <- ge_effects(data_ge2, ENV, GEN, PH)
plot(ge_eff)

metan documentation built on Nov. 10, 2021, 9:11 a.m.