>From reading the code, I think you need to set fill: shading is a type of
fill, and unless you tell it a colour for the lines they are
`transparent'.
That may or may not be a bug. The description in ?rect seems to be!
On Thu, 24 Jul 2003 mittal@math.arizona.edu wrote:
> platform i386-pc-mingw32
> arch i386
> os mingw32
> system i386, mingw32
> status
> major 1
> minor 7.1
> year 2003
> month 06
> day 16
> language R
>
> I have a Dell Inspiron 4000 laptop with Windows ME. I recently installed
the
> 1.7 version of R. The following commands are from my notes for the course
I
> teach. They worked in the older version of R (I think it was 1.4) but now
seem
> to make a blank box with the last command no matter what values are chosen
for
> angle= and density= . I don't know if this is a bug or not.
>
> > x<-rnorm(50)
> > y<-runif(50)
> > plot(x,ann=F,type="n")
> > points(x,pch=1)
> > points(y,pch=4)
> >
title(main="Main",xlab="x-axis",ylab="y-axis")
> > legend(40,-.5,legend="Test",bty="n")
> > legend(42,.5,legend="",angle=45,density=20,cex=.5)
>
> Yashaswini Mittal
> Dept. of Math
> University of Arizona
> Tucson, AZ 85721
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
>
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595