plotNLines: Plot many lines in one plot

Description Usage Arguments Details Author(s)

View source: R/plotNLines.R

Description

plotNLines function uses different techniques to visualize many line plots on one display.

Usage

1
2
3
4
5
6
7
plotNLines(x.data = matrix(1:dim(y.data)[2], ncol = dim(y.data)[2], 
    nrow = dim(y.data)[1], byrow = TRUE), y.data, option = c("normal", 
    "diff.scales", "stacked")[1], n.lines.max = 30, grid = FALSE, 
    scale = 1, plot.scale = TRUE, function.add = function() (1), 
    bgc = "white", pch.axlink = 1, type = "l", colors = c(), 
    xlim = c(), ylim = c(), xlab = c(), ylab = c(), labels = c(), 
    lty = 1, title, yaxt = "s", ...)

Arguments

x.data
y.data

numeric matrix/data frame: y-values with one series of values per row

option

character: which type of plot to use (see details)

n.lines.max

integer: only for 'stacked plots': how many lines to draw per panel

grid

logical: only for 'stacked plots': whether to draw a primitive grid

scale

numeric: only for 'stacked plots': scale factor to scale the y scale of the stacked plots

plot.scale

TRUE: only for 'stacked plots': whether to add a small scale showing the y axis scale

function.add

function: only for 'stacked plots': function to call after plotting the individual panels

bgc

color: color of the plot background

pch.axlink

integer: only for 'stacked plots': pch value for the symbol that links each line to its x-axis

type

standard plotting parameter

colors

colors to use for the different series

xlim

standard plotting parameter

ylim

standard plotting parameter

xlab

standard plotting parameter

ylab

standard plotting parameter

labels

standard plotting parameter

lty

standard plotting parameter

title

standard plotting parameter

yaxt

standard plotting parameter

...

further arguments passed to the plot() calls

Details

Many parameters are identical to standard plotting parameters (see ?par,?plot) and are not explained here. The function offers three options: 'normal': plots all plots in one coordinate system colored according to colors 'diff scales': plots all plots in the same region but uses different y axis scales. The visibility may be limited to ~7 plots. 'stacked': plots many plots in one region, all shifted vertically a bit to increase visibility. This allows for the easy comparison of many similar plots (e.g. time series) but reduces the details that are visible. image ..plotNLines_demo should be here

Author(s)

Jannis v. Buttlar


JBTools documentation built on May 2, 2019, 5:47 p.m.