Hi, I am trying to do some shading in R and am using the polygon() setting. I want the border on the top and bottom of the polygon, but not on the left and right. Is there a way to do this in R? Thanks in advance! beloitstudent -- View this message in context: r.789695.n4.nabble.com/Borders-on-a-polygon-tp2246646p2246646.html Sent from the R help mailing list archive at Nabble.com.
On Mon, Jun 7, 2010 at 6:55 PM, beloitstudent wrote:> [...] I am trying to do some shading in R and am using the polygon() setting. > I want the border on the top and bottom of the polygon, but not on the left > and right. [...]One way would be to add the borders after as lines. For example: plot.new() polygon(c(0,1,1,0), c(0,0,1,1), col = "yellow", border = NA) lines(c(0,1), c(0,0)) lines(c(0,1), c(1,1))