Skip to content
Prev 156616 / 398506 Next

Plot availability

I really would encourage you to look at ggplot2 before trying to
create something of your own.  Your example would convert to the
following ggplot2 code:

df <- data.frame(x = 0:3, y = 3:0)

plot <- ggplot() + xlim(-3, 3) + ylim(-3, 3) + opts(main = "Hello World")
plot + geom_line(aes(x=x, y=y), df, colour = "blue")

Hadley
On Fri, Sep 19, 2008 at 1:44 PM, john crepezzi <seejohnrun at gmail.com> wrote: