Learn R Programming

fmsb (version 0.7.6)

gstem: Draw the stem and leaf plot in a graphic device.

Description

Capture the output of stem() function and plot them into graphic devices. However, the result of setting scale parameter as 2 may be controversial.

Usage

gstem(X, scale)

Arguments

X

A numeric vector.

scale

Parameter to control plot length of graph. Default is 1.

Examples

Run this code
 x <- rnorm(100, 10, 1)
 stem(x)
 stem(x, 2)
 layout(t(1:2))
 gstem(x)
 gstem(x, 2)

Run the code above in your browser using DataLab