Hans Gardfjell wrote:> Dear R users,
>
> I can get a filled triangle pointing upwards by specifying pch=17 in
> xyplot or lpoints, but how do I get a filled triangle that points
> downwards?
>
> In the standard plot function it's possible to use
> plot(x,y,pch=25,bg="black"), but bg= doesn't seem to work
with lattice
> and lpoints.
>
> Thanks,
>
> Hans Gardfjell
> Ecology and Environmental Science
> Ume? University, Sweden
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
>
In grid package that is underling package of lattice fill color is set
through "gp" parameter. Try this
plot(x,y,pch=25,gp=gpar(fill="black",col="black"))