Skip to content
Prev 360509 / 398503 Next

polygon angle option perpendicular to axis

The angle is not based on the polygon edges, but it can seem that way if you do not use the asp=1 argument in your plot. Try this example,
Notice that the 45 and 135 degree lines (upper left and lower right) do not seem to be parallel to the edges of the boxes which should be 45 and 135. Run the code again adding asp=1 to the plot() function and now the lines are parallel.

-------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352

-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Greg Snow
Sent: Thursday, April 28, 2016 9:50 AM
To: Simon, Heather
Cc: r-help at r-project.org
Subject: Re: [R] polygon angle option perpendicular to axis

Filling polygons with lines is a throwback to the time when the height
of quality graphics was the mechanical pen plotter (a device that used
a pen in a mechanical arm to draw the plot on a piece of paper).
Computing and printing technology has advanced quite a bit from that
day, so you may want to reconsider why you want polygons filled with
lines instead of just a solid color (and I consider white, grey, and
black as colors for this purpose).
On Wed, Apr 27, 2016 at 2:17 PM, Simon, Heather <Simon.Heather at epa.gov> wrote: