Skip to content
Prev 6097 / 7419 Next

correlation plot in color

Thanks Bede-Fazekas ?kos, 
Thanks a lot for your help. 

I have installed also the library (colorspace)
I got the following error:
Error: unexpected input in "palette <- setNames(object = c(?"

What can I do?
Best
Manuel 

 
-----Mensaje original-----
De: R-sig-ecology <r-sig-ecology-bounces at r-project.org> En nombre de Bede-Fazekas ?kos
Enviado el: lunes, 23 de marzo de 2020 6:52
Para: r-sig-ecology at r-project.org
Asunto: Re: [R-sig-eco] correlation plot in color

Dear Manuel,

please try this:
palette <- setNames(object = c(?red?, ?green3?, ?black?, ?blue?), nm =
levels(Libro$Treat))
chart.Correlation(Libro[,1:4], histogram = T, pch = 19, bg=
palette[Libro$Treat])

Have a nice week,
?kos

2020.03.23. 2:40 keltez?ssel, Salvador SANCHEZ COLON ?rta:
_______________________________________________
R-sig-ecology mailing list
R-sig-ecology at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology