shiftplot: Shiftplot

Description Usage Arguments

View source: R/shiftplot.R

Description

Shiftplots using ggplot with optional trellising

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
shiftplot(
  data,
  aes,
  by = NULL,
  ncol = NULL,
  trans = "identity",
  xlab = "Baseline",
  ylab = "Maximum",
  main = NULL,
  jitter.amount = 0,
  alpha = 1,
  shape = 16,
  ptcol = "blue",
  linecol = "orange",
  theme = NULL,
  ...
)

Arguments

data

A data.frame.

aes

An object created with aes.

by

A formula for passing to facet_wrap.

ncol

The number of columns to lay the plots out in.

trans

Character string defining the axis transformations. Defaults to trans="log10". Use trans="identity" if no transformation is to take place.

xlab

The horizontal axis label.

ylab

The vertical axis label.

main

The main title.

jitter.amount

The amount by which to jitter the data. Defaults to no jittering.

alpha

Value of alpha for transparency. Defaults to no transparency.

shape

The plot symbol to use.

ptcol

The colour for points on the plots.

linecol

The colour for the reference line.

theme

An object produced by a call to theme to be added to the ggplot.

...

Additional arguments to ggplot. Currently unused.


harrysouthworth/margarita documentation built on Aug. 19, 2021, 5 a.m.