Learn R Programming

Hmisc (version 5.0-1)

spikecomp: spikecomp

Description

Compute Elements of a Spike Histogram

Usage

spikecomp(x)

Value

a list with element segments which has elements x, y1, y2

Arguments

x

a numeric variable

Author

Frank Harrell

Details

Derives the line segment coordinates need to draw a spike histogram. This is useful for adding elements to ggplot2 plots.

Examples

Run this code
spikecomp(1:1000)

Run the code above in your browser using DataLab