stem: Stem

Description Usage Arguments Details Value See Also Examples

Description

Matlab-like stem plotting function for discrete series.

Usage

1
Stem(x, y, pch = 16, linecol = 1, clinecol = 1, ...)

Arguments

x

horizontal-axis values

y

vertical-axis values

pch

integer value, style of points (pch = 21: circle without fill, see plot pch parameter)

linecol

color of the plot

clinecol

zero axis color

...

other parameters passed to plot function

Details

Discrete plots using base plotting system.

Author: Matti Pastell, Sep 11 2009 http://mpastell.com/2009/09/11/matlab-style-stem-plot-with-r/

Value

creates a plot in base plotting system.

See Also

For interactive time-series plots, see package dygraphs.

Examples

1
2
3
4
5
t <- seqM(from = 0, to = 2*pi, length.out = 20)
Stem(t, sin(t))
Stem(t, sin(t), pch=21)
Stem(t, sin(t), pch=21, line="blue")
Stem(t, sin(t), main = "Default style")

bbTomas/tbTools documentation built on May 11, 2019, 9:25 p.m.