specplot: specplot

specplotR Documentation

specplot

Description

Plot an MS spectrum

Usage

specplot(
  x,
  y,
  norm = max(y)/100,
  cx = 1.5,
  k = 10,
  fileName = "title",
  yrange = c(0, 100),
  xrange = range(x),
  maxi = max(y),
  labels = NULL,
  mar = c(4, 6, 6, 2),
  ylab = "Relative Intensity (%)",
  ylabshift = 0
)

Arguments

x

mz coordinates

y

intensity coordinates

norm

normalize by

cx

font size

k

top k intensity peaks will be labeled

fileName

plot title

yrange

y axis range

xrange

x axis range

maxi

max intensity to be plotted on side

labels

data.frame containing at least x and y coordinates, plus optional columns: label and color

mar

margins passed to par()

ylab

y axis label

ylabshift

shift horizontal position of y axis label

Details

NOTE: This function is deprecated. Use specplot2 instead

Value

plots a spectrum view in the current plotting device


mjhelf/Metaboseek documentation built on April 23, 2022, 12:09 p.m.