powered by
Compute Elements of a Spike Histogram
spikecomp(x)
a list with element segments which has elements x, y1, y2
segments
x
y1
y2
a numeric variable
Frank Harrell
Derives the line segment coordinates need to draw a spike histogram. This is useful for adding elements to ggplot2 plots.
ggplot2
spikecomp(1:1000)
Run the code above in your browser using DataLab