graphSum: Draw graphs of insect mortality or other exposure-response...

Description Usage Arguments Value

View source: R/graphSum.R

Description

Datasets that are in mind hold, for each replicate of each combination of each of a several factors (e.g., species, lifestages, temperatures), mortalities for each of a number of values of "dose". See for example the dataset help page codling1989.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
graphSum(
  df,
  subSet = NULL,
  link = "cloglog",
  logScale = FALSE,
  dead = "Dead",
  tot = "Tot",
  dosevar = "logCT",
  Rep = "Rep",
  fitRep = NULL,
  fitPanel = NULL,
  byFacet = ~Species,
  layout = NULL,
  maint = "Codling Moth, MeBr",
  ptSize = 2,
  xzeroOffsetFrac = 0.08,
  yzeroOneOffsets = c(-0.08, 0.08),
  yEps = 0.005,
  xlab = expression(bold("CT ") * "(gm.h." * m^{     -3 } * ")"),
  ylabel = NULL,
  ytiklab = c(0.01, 0.05, 0.1, 0.25, 0.5, 0.75, 0.9, 0.99)
)

Arguments

df

Data frame from which data will be taken

subSet

NULL, or an expression, such as for example expression(LifeStage=='Eggs')) that evaluates to a logical that specifies the required data subset. If not NULL then the subsetting information is pasted on after the main title

link

Link function. If character, obtain from make.link. Alternatively, a function may be supplied as argument.

logScale

Logical, indicating whether the dose ($x$-variable) is on a log scale.

dead

Character; name of column holding number dead

tot

Character; column holding total number

dosevar

Character; column holding "dose" values

Rep

Character; NULL, or column holding replicate number, within panel

fitRep

Character; NULL, or column holding replicate fitted values

fitPanel

Character; NULL, or column holding panel fitted values

byFacet

Graphics formula specifying factor combination that determines panel

layout

Graphics formula that can be supplied to grid_facet

maint

Main title

ptSize

Pointsize, by default 2

xzeroOffsetFrac

$x$-axis zero offset fraction, required when scale is logarithmic

yzeroOneOffsets

Length two vector, giving 0 100 mortalities, on the scale of the link function.

yEps

Fractional increase at bottom and top of $y$ user range to accommodate points for mortalities of 0 and 1.

xlab

Expression specifying x-axis label

ylabel

If not NULL, $y$-axis label

ytiklab

Place $y$ axis tiks and labels at these mortalities

Value

No return value, called for side effects


qra documentation built on Oct. 29, 2021, 9:06 a.m.