ezScatter: Does scatter plots

View source: R/plots.R

ezScatterR Documentation

Does scatter plots

Description

Does scatter plots.

Usage

ezScatter(
  x = NULL,
  y,
  xlab = NULL,
  ylab = NULL,
  nPlotsPerRow = 6,
  shrink = FALSE,
  lim = range(x, y, na.rm = TRUE),
  isPresent = NULL,
  types = NULL,
  pch = 16,
  colors = rainbow(ncol(types)),
  legendPos = "bottomright",
  cex.main = 1,
  cex = 1,
  ...
)

ezXYScatter(
  xVec,
  yVec,
  absentColor = "gray",
  shrink = FALSE,
  frame = TRUE,
  axes = TRUE,
  xlim = range(xVec, yVec, na.rm = TRUE),
  ylim = xlim,
  isPresent = NULL,
  types = NULL,
  pch = 16,
  colors = rainbow(ncol(types)),
  legendPos = "bottomright",
  ...
)

Arguments

x

an optional reference vector or matrix.

y

a matrix of values to plot.

xlab

a character for labeling the reference. If x is a matrix, its colnames will be used as labels.

ylab

a character vector for the labels of the plots. If ylab is NULL, the colnames from y will be used as labels.

nPlotsPerRow

an integer specifying the number of plots per row.

shrink

a logical specifying whether to shrink the values to range.

lim

integers specifying the x and y limits of the plot.

isPresent

a logical specifying whether the signal is present.

types

a character vector containing the types.

pch

an integer specifying the look of plotted points.

colors

a character vector containing colors.

legendPos

a character vector or integer specifying the position of the legend.

cex.main

a numeric specifying the size of main titles relative to cex.

cex

a numeric specifying the size of text and symbols.

...

additional arguments to be passed further.

Functions

  • ezXYScatter: Does the XY scatter plot.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

x = runif(n=1000)
y = runif(n=1000)
isPresent = x > 0.2 & y > 0.2
ezScatter(y=data.frame(a=1:10, b=21:30, c=41:50))
ezXYScatter(x, y, isPresent=isPresent)

uzh/ezRun documentation built on April 19, 2024, 8:25 a.m.