[R] Symbols on a capscale object plot
mark_difford at yahoo.co.uk
Sat Sep 13 14:21:01 CEST 2008
>> I would like to use something like squares, triangles and circles (filled
>> and empty).
You would normally add this using points():
points(1:5, pch=21:25, bg=1:5)
points(6:10, pch=21:25, bg=c(1,"darkgrey","cyan", "bisque"))
points(6:10, y=rep(6,5), pch=1:5)
I don't know what vegan is doing at the moment but there used to be a points
command for doing this (sub ordiplot, I think). Vegan mostly still uses base
graphics so you can always get your scores [via: scores(ord.object): see
?scores] from your saved ordination object and add them as per above.
Rodrigo Aluizio wrote:
> Hi, I'm a beginner with R, but I'm getting excellent results with it.
> Well I've got an capscale object (vegan package) and I want to made a
> with symbols representing six groups of areas.
> With the plot.cca function and some par attributes (like 'labels') I was
> able to substitute the samples names for keyboard symbols
> but it's far from the ideal.
> I've already search about it and find something using 'Hershey' fonts
> symbols for a scatterplot, but it didn't work for the biplot (capscale
> I would like to use something like squares, triangles and circles (filled
> and empty).
> Does anyone have and idea to solve it?
> Thank you for your attention and patience
> Sorry if the English is not that good, I'm Brazilian.
> Here is the script I'm using!
> # The analysis
> dbRDA<-capscale(t(LogPotiBio)~"Environmental Variables",dist="bray",add=T)
> #Preparing to generate and save the graphic
> MSc. Rodrigo Aluizio
> Centro de Estudos do Mar/UFPR
> Laboratório de Micropaleontologia
> Avenida Beira Mar s/n - CEP 83255-000
> Pontal do Paraná - PR - BRASIL
> Fone: (0**41) 3455-1496 ramal 217
> Fax: (0**41) 3455-1105
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/Symbols-on-a-capscale-object-plot-tp19469679p19470027.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help