M. Camanm posted in Jul 1999 the following message: " Is there any way to fill the bars in a barplot() with solid lines for postscript output, i.e. cross hatch or parallel lines, or a halftone gray rather than (semi) continuous-tone gray produced by gray()? S allows this, or at least used to, via the angle and density arguments to barplot(). The objective of course, is to produce camera ready black and white plots on a laser printer. The gray values produced by gray() do not reproduce well. " and Paul Murrel gave the following answer " implementing density and angle arguments are on the todo list. the bad news is that they're behind a number of more important bugs. the good news is that they get closer to the front of the todo list as more people request it " Is this point still on the ToDo list ? much thanks Bruno -- Bruno Tassin Cereve ENPC-ENGREF-UPVM 6-8 rue Blaise Pascal Cit? Descartes Champs sur Marne F 77455 MARNE LA VALLEE cedex 2 t?l : + 33 (0) 1 64 15 36 40 fax : + 33 (0) 1 64 15 37 64 email tassin at cereve.enpc.fr -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, Nov 23, 2000 at 06:47:11PM +0100, Bruno Tassin wrote:> M. Camanm posted in Jul 1999 the following message: > > " > Is there any way to fill the bars in a barplot() with solid lines for > postscript output, i.e. cross hatch or parallel > lines, or a halftone gray rather than (semi) continuous-tone gray > produced by gray()? S allows this, or at least > used to, via the angle and density arguments to barplot(). The objective > of course, is to produce camera ready > black and white plots on a laser printer. The gray values produced by > gray() do not reproduce well. " > > and Paul Murrel gave the following answer > " > implementing density and angle arguments are on the todo list. the bad > news > is that they're behind a number of more important bugs. the good news is > > that they get closer to the front of the todo list as more people > request it " > > Is this point still on the ToDo list ?Yes. But no closer to the top :-( It's actually something which anyone who knows a bit of C programming and graphics could tackle. It comes down to computing the intersection of infinite straight lines with each of the edges of the polygon, sorting these intersections (left to right or top to bottom), and joining adjacent pairs of intersections with straight lines. A useful approach is to rotate the polygon so that the cross hatching lines are horizontal, then the intersection tests with the edges are easy. Two important points to consider are: (i) The lines should placed relative to a fixed point on the device, rather than to a vertex of the polygon being filled. This means that the cross hatching patterns of adjacent polygons will match. (ii) There is virtually no extra work in structuring the code so that it can handle polygons containing holes (this is a very useful capability). A couple of useful references are: Robert Cromley (1992). "Digital Cartography". Prentice-Hall. Paul Bourke's geometry pages: http://www.swin.edu.au/astronomy/pbourke Ross -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> M. Camanm wrote: > > " > Is there any way to fill the bars in a barplot() with solid lines for > postscript output, i.e. cross hatch or parallel > lines, or a halftone gray rather than (semi) continuous-tone gray > produced by gray()?+ replies. If only Postscrpt output is required, I have a routine which uses the Postscript "paint" function to fill bars with four types of hatching. This can be extended to dots, etc. (it's messy using halftone to do this in Postscript). Jim -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
A reviewer recently suggested that I include something he/she referred to as a "tree ANOVA analysis" in a manuscript. Forgive my ignorance, but I'm a humble biologist.... 1) can anyone give me any additional information on this technique (a citation or two would be lovely), and 2) Does R do it. The reviewer did state that S-plus does, if that helps. Thanks for any help you can offer. --Mike C. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michael A. Camann Voice: 707-826-3676 Assistant Professor of Zoology Fax: 707-826-3201 Institute for Forest Canopy Research Email: mac24 at axe.humboldt.edu Department of Biology ifcr at axe.humboldt.edu Humboldt State University Arcata, CA 95521 URL:http://www.humboldt.edu/~mac24/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._