Hello, I would like to build rectangles in a plot and use color and different type of hatching for filling rectangles. I don't find the way to draw hatchings. I'm thinking to build segment by segment inside each rectangle but I'm sure that exists a better way to do that. I didn't find any documentation about that.> symbols(1,1,rectangles=cbind(1,1),bg="red", ... ) # Does it exist anargument to fill symbols in hatching or regular point or plus ... ? style does not work, density too... Does anyone know a solution to do that ? Thank you for your answer, Guilhem [[alternative HTML version deleted]]
Tena koe Guilhem Perhaps ?rect would help ... Peter Alspach> -----Original Message----- > From: r-help-bounces at r-project.org > [mailto:r-help-bounces at r-project.org] On Behalf Of Guilhem Faure > Sent: Friday, 19 June 2009 7:11 a.m. > To: r-help at r-project.org > Subject: [R] Hatched symbols > > Hello, > > I would like to build rectangles in a plot and use color and > different type of hatching for filling rectangles. I don't > find the way to draw hatchings. > I'm thinking to build segment by segment inside each > rectangle but I'm sure that exists a better way to do that. I > didn't find any documentation about that. > > > symbols(1,1,rectangles=cbind(1,1),bg="red", ... ) # > Does it exist an > argument to fill symbols in hatching or regular point or plus ... ? > > style does not work, density too... > > Does anyone know a solution to do that ? > > Thank you for your answer, > > Guilhem > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >The contents of this e-mail are confidential and may be subject to legal privilege. If you are not the intended recipient you must not use, disseminate, distribute or reproduce all or any part of this e-mail or attachments. If you have received this e-mail in error, please notify the sender and delete all material pertaining to this e-mail. Any opinion or views expressed in this e-mail are those of the individual sender and may not represent those of The New Zealand Institute for Plant and Food Research Limited.
On Jun 18, 2009, at 3:10 PM, Guilhem Faure wrote:> Hello, > > I would like to build rectangles in a plot and use color and > different type > of hatching for filling rectangles. I don't find the way to draw > hatchings. > I'm thinking to build segment by segment inside each rectangle but > I'm sure > that exists a better way to do that. I didn't find any documentation > about > that. > >> symbols(1,1,rectangles=cbind(1,1),bg="red", ... ) # Does it >> exist an > argument to fill symbols in hatching or regular point or plus ... ? > > style does not work, density too...I could not find it looking through the help pages and links, either, but try: rect(.8,.8,1,1, col=grey(.2), density=20, angle=45)> > Does anyone know a solution to do that ? > > Thank you for your answer, > > GuilhemDavid Winsemius, MD Heritage Laboratories West Hartford, CT