adehabitatLT

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

adehabitatLT

Carolina Massa
Hello,
Someone know how can I plot two ltraj (2 different animals) in the same
graph?
thanks

Caro

_______________________________________________
R-sig-ecology mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
Reply | Threaded
Open this post in threaded view
|

Re: adehabitatLT

Mathieu Basille-3
[I'm resending my answer since it didn't make it to the list]

Hi Carolina,

Please check my package 'hab' [1]. I refined 'plot.ltraj' there to allow
for better control for the user. I believe it can be used to do what you
want. See for instance the following example:

library(hab)
data(puechcirc)
plot(puechcirc, by = "none")
plot(puechcirc, by = "none", ppar = list(col = c(CH930824 = "blue",
    CH930827 = "blue", JE930827 = "red"), pch = 20), lpar = list(col =
    c(CH930824 = "blue", CH930827 = "blue", JE930827 = "red")))

You will find other useful examples in the help page of the function.

Hope this helps!
Mathieu.


[1] https://github.com/basille/hab


Le 14/04/2016 06:17, Carolina Massa a écrit :

> Hello,
> Someone know how can I plot two ltraj (2 different animals) in the same
> graph?
> thanks
>
> Caro
>
> _______________________________________________
> R-sig-ecology mailing list
> [hidden email]
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>

--

Mathieu Basille

[hidden email] | http://ase-research.org/basille
+1 954-577-6314 | University of Florida FLREC

  « Le tout est de tout dire, et je manque de mots
  Et je manque de temps, et je manque d'audace. »
  — Paul Éluard

_______________________________________________
R-sig-ecology mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology