[R] RES: Symbols output

From: Rodrigo Aluizio <r.aluizio_at_gmail.com>
Date: Tue, 18 Nov 2008 19:27:49 -0200

A fast and simple way to do that would be something like this (the example is a gray circle)

postscript('Circle.eps')
par(mar=c(0,0,0,0))
plot.new()
points(0.5,0.5,pch=21,cex=50,bg='gray')
dev.off()

You just have to chance the symbol (pch) and color (bg), the output will be an EPS file, open it on an Image Editor (PhotoShop, Corel, etc) and save at other format you want (png, jpg, tif, bmp, etc) with any resolution, the background of the symbol will be transparent, so I recommend saving it as tif or png!

Hope it helps...

-----Mensagem original-----
De: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] Em nome de Gareth Campbell
Enviada em: terça-feira, 18 de novembro de 2008 18:53 Para: R Help
Assunto: [R] Symbols output

Hi everyone,

I have a PCA plot that I'm writing about in the text. There were so many symbols in different colours on it that I didn't include a legend in the plot as it would be useless. So what I was hoping to do was to talk about each set of replicates in the text and when I do that, use their coloured symbol in the text. So what I want to do is to get R to create some high quality picture files of the symbols with the colours I tell it to.

Does anyone have an idea about the best way to go about this? I created a graph of the symbols and tried to use photoshop to cut them out, but it's laborious and the quality is not the best. I just want small sharp symbols.

Thanks

Gareth Campbell
PhD Candidate
The University of Auckland

P +649 815 3670
M +6421 256 3511
E gareth.campbell_at_esr.cri.nz

    gcam032_at_gmail.com

        [[alternative HTML version deleted]]



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.

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. Received on Tue 18 Nov 2008 - 21:38:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 18 Nov 2008 - 22:30:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive