I use ggplot2 to plot a step function using geom_step()
.
What I need now is to get rid of the vertical lines.
This should be a quite common problem in math at least...
The docs do not mention such possibility .
Is there a hidden argument somewhere, or do I need to convert the data somehow so I can print individual lines for each datapoint?
TL;DR:
have ggplot(data,aes(x,y))+geom_step()
want ggplot(data,aes(x,y))+geom_step(lines=horizontal)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…