PlotWindow: PlotWindow

View source: R/Function_PlotWindow.R

PlotWindowR Documentation

PlotWindow

Description

Initiate a plot and draw axes. Used by plotting functions in Metaboseek.

Usage

PlotWindow(
  cx = 1,
  ylim = c(0, 1),
  xlim = c(0, 1),
  heading = "test",
  single = F,
  par = T,
  relto = NULL,
  ylab = "Intensity",
  xlab = "RT (min)",
  ysci = T,
  liwi = 1,
  textadj = 0.5,
  ylabshift = 0
)

Arguments

cx

character expansion factor (font size)

ylim

numeric(2) of y-axis range

xlim

numeric(2) of x-axis range

heading

heading of the plot

single

if TRUE, this plot is expected to be the only plot in a composite plot (different margin settings)

par

if FALSE, par margin settings are not set inside the function and should be set outside

relto

show y axis values relative to relto if not NULL.

ylab

y axis label

xlab

x axis label

ysci

if TRUE, y axis label numbers are shown in scientific format

liwi

line width for axes

textadj

passed on to mtext adj for orientation of plot description/title text line

ylabshift

integer to adjust the position of the y axis label

Value

plots an empty coordinate system in the current plotting device


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