Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 723 Bytes

File metadata and controls

29 lines (20 loc) · 723 Bytes

It would be nice if the included geom_step example did not throw, but behaved more like the included geom_line example.

library('ggplot2')
d <- data.frame(x=1,y=1)
ggplot(data=d,aes(x=x,y=y)) + geom_point()

ggplot(data=d,aes(x=x,y=y)) + geom_line()
## geom_path: Each group consists of only one observation. Do you need to
## adjust the group aesthetic?

ggplot(data=d,aes(x=x,y=y)) + geom_step()
## Error in grid.Call.graphics(L_lines, x$x, x$y, index, x$arrow): invalid line type