multicurve: Merge multiple curves into a single graph

Description Usage Arguments Value Author(s) Examples

View source: R/plot_arrange.R

Description

Merge multiple curves into a single graph

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
multicurve(
  plots,
  theme = theme_classic(),
  legend.title = NULL,
  legend.position = "top",
  trat = NA,
  gray = FALSE,
  ylab = "Germination (%)",
  xlab = expression("Temperature ("^"o" * "C)")
)

Arguments

plots

list with objects of type LM_model, BC_model, CD_model, LL_model or normal_model

theme

ggplot2 theme (default is theme_classi())

legend.title

caption title

legend.position

legend position (default is c(0.3,0.8))

trat

name of the curves

gray

gray scale (default is FALSE)

ylab

Variable response name (Accepts the expression() function)

xlab

treatments name (Accepts the expression() function)

Value

The function returns a graph joining the outputs of the functions LM_model, LL_model, BC_model, CD_model, loess_model, normal_model, piecewise_model and N_model

Author(s)

Gabriel Danilo Shimizu

Examples

1
2
3
4
5
6
7
8
library(seedreg)
data("aristolochia")
attach(aristolochia)
a=LM_model(trat,resp)
b=LL_model(trat,resp,npar = "LL.3")
c=BC_model(trat,resp, npar = "BC.4")
d=CD_model(trat,resp, npar = "CRS.4")
multicurve(list(a,b,c,d))

AgronomiaR/seedreg documentation built on May 19, 2021, 12:12 p.m.