[R] lines(..., lwd=3) inaccuracy
Sarah Goslee
sarah.goslee at gmail.com
Thu Jun 16 21:48:09 CEST 2011
On Thu, Jun 16, 2011 at 3:43 PM, Prof Brian Ripley
<ripley at stats.ox.ac.uk> wrote:
> On Thu, 16 Jun 2011, Sarah Goslee wrote:
>
>> Hi Frank,
>>
>> It's not inaccuracy, exactly, and it's intentional.
>>
>> The default behavior is to use a round endcap on a line, and with such
>> a large linewidth that endcap is arcing below and above the starting
>> points.
>>
>> This being R, there's a par for that: putting lend=1 in your lines()
>> statements will give you the result you're looking for.
>
> And for those who can't remember which is which, lend = "butt".
Which then confuses those of us who can't remember whether a butt is
supposed to be round or flat. :) I'm content to look in the help when
I need that parameter.
--
Sarah Goslee
http://www.functionaldiversity.org
More information about the R-help
mailing list