Skip to content
Back to formatted view

Raw Message

Message-ID: <408B81B0-855B-46BD-98BE-4FC7676C6934@comcast.net>
Date: 2011-11-01T17:59:07Z
From: David Winsemius
Subject: triangles point left, filled?
In-Reply-To: <239734346.246556.1320138339838.JavaMail.apache@mail21.abv.bg>

On Nov 1, 2011, at 5:05 AM, Martin Ivanov wrote:

> Dear R users,
>
> I want to plot not only triangles point up and triangles point down,
> which is easy using the "pch" argument to "points". I want to plot  
> left and right pointing triangles as well. They must be fillable  
> with colour.
>
> I browsed a little in the documentation, tried rotating the up and  
> down pointing triangles, but of no avail. Any suggestions will be  
> appreciated.

 > plot(1:10)
 > polygon(x=c(1.5,1.6,1.6), y=c(1.5,1.6,1.4))
 > polygon(x=c(1.5,1.4,1.4)+1, y=c(1.5,1.6,1.4)+1)
 > polygon(x=c(1.5,1.7,1.7)+1, y=c(1.5,1.7,1.3)+2, col="red")

>
> Regards,
> Martin Ivanov
>
> -----------------------------------------------------------------
> 100 ?? ?????. ???-?????? ???????????.  
> Tempobet.com
> http://bg.tempobet.com/affiliates/3208311
>
> ______________________________________________
> 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.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT