Skip to content
Prev 315480 / 398503 Next

How to plot this simple step function?

Sorry, missed a parenthesis:

ggplot( dta, aes( x=x, y=y, xend=xend, yend=yend )) +
geom_segment()+
geom_point( shape=16, size=4 ) +
geom_point( aes( x=xend, y=yend ), shape=1, size=4 )

If you have questions about base graphics or lattice, this forum is good. If you have questions about ggplot2, the ggplot2 Google group is probably a better bet than here.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: