Re: [R] Layers in graphs

2008-07-15 Thread Thomas Fröjd
; > > > >> -Ursprüngliche Nachricht- >> Von: "Thomas Fröjd" <[EMAIL PROTECTED]> >> Gesendet: 15.07.08 13:07:45 >> An: r-help@r-project.org >> Betreff: [R] Layers in graphs > > >> Hi, >> >> I am trying to plot a di

Re: [R] Layers in graphs

2008-07-15 Thread René Capell
par(new=T) #again your histogram hist(weights$Weight, freq=TRUE, breaks=breakpoints, main=wfiles[i]) cheers, René > -Ursprüngliche Nachricht- > Von: "Thomas Fröjd" <[EMAIL PROTECTED]> > Gesendet: 15.07.08 13:07:45 > An: r-help@r-project.org > Betreff: [R]

[R] Layers in graphs

2008-07-15 Thread Thomas Fröjd
Hi, I am trying to plot a distribution over a histogram with the polygon() function. However I have to use this function after hist() and that makes the polygon cover the histogram. I would prefer having the histogram at the top layer and the polygon as the background. Is that possible? A workaro