Learn R Programming

netdose (version 0.7-4)

dotplot: Dot plot for dose-response data

Description

Generates a dot plot for dose-response data

Usage

dotplot(
  x,
  method = "dotplot",
  drop.single.dose = FALSE,
  drop.reference.group = TRUE,
  col = "black",
  fill = "steelblue",
  size = 2,
  spacing = 0.1,
  numbers = FALSE,
  col.numbers = "black",
  size.numbers = 2,
  ylab = "Dose",
  ...
)

Value

No return value.

Arguments

x

An object created with netdose.

method

The method used to create the dot plot. Either, "dotplot" to use geom_dotplot or "point" to use geom_point; can be abbreviated.

drop.single.dose

A logical indicating whether to drop the panel for an agent with a single dose.

drop.reference.group

A logical indicating whether to drop the panel for the reference group.

col

The color used for the border of dots.

fill

The color used for the background of dots.

size

A single numeric with the size of the dots.

spacing

A single numeric with the space between dots; only considered if method = "point".

numbers

A logical indicating whether to print the number of doses per agent (only considered if method = "point").

col.numbers

The color used for the number of doses.

size.numbers

A single numeric with the size the number of doses.

ylab

A label for the y-axis.

...

Additional arguments (ignored).

Author

Guido Schwarzer <guido.schwarzer@uniklinik-freiburg.de>

Details

The function produces a dot plot of drug doses.

Using argument method = "dotplot", dots are aligned in on the horizontal axis. However, this function does not produce the same dot size for agents with a single dose. Furthermore, an irrelevant note is triggered regarding the bin width.

Argument method = "point" can be used to plot the same dot size for agents with a single dose, however, dots are not aligned.

See Also

netdose

Examples

Run this code
# Use a subset of 3 studies from anesthesia data
anesthesia_subset <-
  subset(anesthesia, study %in% unique(anesthesia$study)[1:3])

# Prepare data for DR-NMA
dat <- pairwise(
  agent = list(agent1, agent2, agent3),
  event = list(event1, event2, event3),
  n = list(n1, n2, n3),
  dose = list(dose1, dose2, dose3),
  data = anesthesia_subset,
  studlab = study,
  append = FALSE)

# DR-NMA with linear dose-response function
dr1 <- netdose(TE, seTE, agent1, dose1, agent2,
  dose2, studlab,
  data = dat)

# Dose-response plot
dotplot(dr1)

Run the code above in your browser using DataLab