multicurve {seedreg}R Documentation

Graph: Merge multiple curves into a single graph

Description

Graph: Merge multiple curves into a single graph

Usage

multicurve(
  plots,
  theme = theme_classic(),
  legend.title = NULL,
  legend.position = "top",
  trat = NA,
  method = "shape_color",
  fill = "gray90",
  ylab = "Germination (%)",
  xlab = expression("Temperature ("^"o" * "C)"),
  width.bar = NA,
  pointsize = 4.5,
  linesize = 0.8,
  textsize = 12,
  font.family = "sans"
)

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

method

marking method

fill

dot fill color in case gray=F

ylab

Variable response name (Accepts the expression() function)

xlab

treatments name (Accepts the expression() function)

width.bar

bar width

pointsize

shape size

linesize

line size

textsize

Font size

font.family

Font family (default is sans)

Details

The method argument defines the type of markup desired by the user. By default, method="shape_color" is used, which differentiates by color and dot shape. For gray scale, use method="shape_gray". To use only color, use method="color", in this case, the dot shape is 16 (filled circle). You can change the stitch pattern by setting the fill color in quotes followed by a space and the stitch number (eg "gray 21"). Still starting from this last method, if the user uses the change to point format without filling, such as 15, 16, 17 or 18, the function will ignore the first argument (ex. "gray 16"), however, of either way the user must define a color.

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

library(seedreg)
data("aristolochia")
attach(aristolochia)
a=LM_model(trat,germ)
b=LL_model(trat,germ,npar = "LL.3")
c=BC_model(trat,germ, npar = "BC.4")
d=CD_model(trat,germ, npar = "CRS.4")
multicurve(list(a,b,c,d))

[Package seedreg version 1.0.3 Index]