Learn R Programming

rwirelesscom (version 1.4.3)

stemplot: Stem Plot

Description

Receives a vector of x and y values and plots a stemplot (line and "points").

Usage

stemplot(x, y, pch = 16, linecol = 1, linew = 1, ...)

Arguments

x
- vector of x axis points
y
- vector of y axis points
pch
- plot character default = 19
linecol
- default line color = 1 (black)
linew
- default line width = 1
...
- graphical environment parameters are input to stemplot

Details

#' Reference: M, Pastell, http://www.r-bloggers.com/matlab-style-stem-plot-with-r

See Also

Other rwirelesscom functions: eyediagram; f16pskdemod; f16pskmod; f16qamdemod; f16qammod; f64qamdemod; f64qammod; f8pskdemod; f8pskmod; fNo; fbpskdemod; fbpskmod; fqpskdemod; iqdensityplot; iqscatterplot

Examples

Run this code
x <- seq(-3*pi, 3*pi, by = 0.2)
y <- sinc(x)
stemplot(x/pi,y,ylim=c(-0.3,1.1), pch=19, cex=0.3, ylab="y", xlab="x/pi")

Run the code above in your browser using DataLab