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. Regards, Martin Ivanov ----------------------------------------------------------------- 100 ?? ?????. ???-?????? ???????????. Tempobet.com http://bg.tempobet.com/affiliates/3208311
triangles point left, filled?
3 messages · Martin Ivanov, David Winsemius, Jim Lemon
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
On 11/01/2011 08:05 PM, 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.
Hi Martin, Have a look at the "my.symbols" function in the TeachingDemos package. Jim