gsunflowerplot: Produce a gsunflower scatter plot

gsunflowerplotR Documentation

Produce a gsunflower scatter plot

Description

Multiple points are plotted as "sunflowers" with multiple leaves ("petals") such that overplotting is visualised instead of accidental and invisible.

Usage

gsunflowerplot(x, ...)

## Default S3 method:
gsunflowerplot(
  x,
  y = NULL,
  number,
  log = "",
  digits = 6L,
  xlab = NULL,
  ylab = NULL,
  xlim = NULL,
  ylim = NULL,
  add = FALSE,
  rotate = FALSE,
  pch = 16,
  cex = 0.8,
  cex.fact = 1.5,
  col = par("col"),
  bg = NA,
  size = 1/8,
  seg.col = 2,
  seg.lwd = 1.5,
  ...,
  grid = TRUE,
  col.grid = "grey90",
  col.acc = "white"
)

## S3 method for class 'formula'
gsunflowerplot(
  formula,
  data = NULL,
  xlab = NULL,
  ylab = NULL,
  ...,
  subset,
  na.action = NULL,
  grid = TRUE,
  col.grid = "grey90",
  col.acc = "white"
)

Arguments

x

numeric vector of x-coordinates of length n, say, or another valid plotting structure, as for plot.default, see also xy.coords.

...

further arguments to plot [if add = FALSE], or to be passed to or from another method.

y

numeric vector of y-coordinates of length n.

number

integer vector of length n. number[i] = number of replicates for (x[i], y[i]), may be 0.
Default (missing(number)): compute the exact multiplicity of the points x[], y[], via xyTable().

log

character indicating log coordinate scale, see plot.default.

digits

when number is computed (i.e., not specified), x and y are rounded to digits significant digits before multiplicities are computed.

xlab, ylab

character label for x-, or y-axis, respectively.

xlim, ylim

numeric(2) limiting the extents of the x-, or y-axis.

add

logical; should the plot be added on a previous one ? Default is FALSE.

rotate

logical; if TRUE, randomly rotate the sunflowers (preventing artefacts).

pch

plotting character to be used for points (number[i]==1) and center of sunflowers.

cex

numeric; character size expansion of center points (s. pch).

cex.fact

numeric shrinking factor to be used for the center points when there are flower leaves, i.e., cex / cex.fact is used for these.

col, bg

colors for the plot symbols, passed to plot.default.

size

of sunflower leaves in inches, 1[in] := 2.54[cm]. Default: 1/8\", approximately 3.2mm.

seg.col

color to be used for the segments which make the sunflowers leaves, see par(col=); col = "gold" reminds of real sunflowers.

seg.lwd

numeric; the line width for the leaves' segments.

grid

logical; if TRUE, a background grid will be drawn

col.grid

grid color

col.acc

grid accent color

formula

a formula, such as y ~ x.

data

a data.frame (or list) from which the variables in formula should be taken.

subset

an optional vector specifying a subset of observations to be used in the fitting process.

na.action

a function which indicates what should happen when the data contain NAs. The default is to ignore case with missing values.


raredd/plotr documentation built on Nov. 19, 2023, 4:09 a.m.