<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: Arial; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: auto; text-indent:
0px; text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
font-size: medium; "><span class="Apple-style-span"
style="font-family: Monospace; font-size: 13px; line-height:
17px; text-align: -webkit-left; white-space: pre-wrap; ">
<pre tabindex="0" class="GD40030CLR" style="font-family: Monospace; font-size: 10pt !important; outline-style: none; outline-width: initial; outline-color: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; white-space: pre-wrap !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1.3; "><span class="GD40030COR ace_keyword" style="white-space: pre; color: blue; ">Hi all,
I am using Biomod package for niche modelling.
I did the initial state and lauched the model. After I tried to plot the predictions on a map, but I have this error message :
> </span><span class="GD40030CCR ace_keyword" style="color: blue; ">multiple.plot(Pred_sylvestris[,1:9,1,1],coordXY[Biomod.PA.sample$MyDataPA2$PA1,])
</span><span class="GD40030CGR">Erreur dans multiple.plot(Pred_sylvestris[, 1:9, 1, 1], coordXY[Biomod.PA.sample$MyDataPA2$PA1, :
Uncorrect mapping coordinates : <u>coor and Data are not of the same length</u>
When I checked files I used, indeed coor and data are not one the same length...
</span>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: Monospace; font-size: 13px; line-height: 17px; text-align: -webkit-left; white-space: pre-wrap; "><pre tabindex="0" class="GD40030CLR" style="font-family: Monospace; font-size: 10pt !important; outline-style: none; outline-width: initial; outline-color: initial; border-top-style: none; border-right-style: none; border-bottom-
style: none; border-left-style: none; border-width: initial; border-color: initial; white-space: pre-wrap !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1.3; "><span class="GD40030COR ace_keyword" style="white-space: pre; color: blue; ">> </span><span class="GD40030CCR ace_keyword" style="color: blue; ">length(coordXY)
</span>[1] 2
<span class="GD40030COR ace_keyword" style="white-space: pre; color: blue; ">> </span><span class="GD40030CCR ace_keyword" style="color: blue; ">length(Biomod.PA.sample)
</span>[1] 1
<span class="GD40030COR ace_keyword" style="white-space: pre; color: blue; "></span><span class="GD40030CGR">
</span><span class="GD40030COR ace_keyword" style="white-space: pre; color: blue; ">> </span><span class="GD40030CCR ace_keyword" style="color: blue; ">head(coordXY)
</span> X Y
1 16.12 47.88
2 16.11 47.89
6 16.22 48.39
7 17.19 44.00
8 4.33 50.94
9 15.57 44.97
<span class="GD40030COR ace_keyword" style="white-space: pre; color: blue; ">> </span><span class="GD40030CCR ace_keyword" style="color: blue; ">head(Biomod.PA.sample)
</span>$sylvestris
$sylvestris$PA1
[1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[17] 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
[33] 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
[49] 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
[65] 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
[81] 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96</pre></span></span>
I deleted all duplicate XY coor in the case of it was that by using : MyData3<-MyData[!duplicated(MyData[,c(1,2)]),]
But After re ran initial.state and models, It didn't work again giving the same error message ....
May you help me please ?
Thanks a lot for your help,
Amandine
</pre>
</span></span>
</body>
</html>