Hello Mahnaz,
I have not used the cozigam package, but I would guess that if your
longitude coordinates are for the western hemisphere you will want to have them
negative. If they are for the eastern hemisphere then what you have is correct.
You can check that they are displaying properly by examining the resulting
plot. If the points are a mirror image of what you expect, then you need to
change the sign of the longitude. Hope that helps.
Jeff
__
Jeffrey D. Holland
Assoc. Prof. of Landscape Ecology Biodiversity
Dept. of Entomology, Purdue University
From: Mahnaz Rabbaniha [mailto:rab.mah...@gmail.com]
Sent: Thursday, July 05, 2012 12:10 PM
To: Holland, Jeffrey D
Subject: Re: [R-sig-eco] plot data on base of lonlat
excuse me it is necessary revised the my data matrix:
phyto Temperature Salinity lat
lon
6279.28 28.40206061 37.94621212 27. 2106 52.3402
25285.11667 28.70556522 37.55017391 27.1302 52.2808
34467.0 30.0357 37.5787 27.040852.2208
thanks
On Thu, Jul 5, 2012 at 8:35 PM, Mahnaz Rabbaniha
rab.mah...@gmail.commailto:rab.mah...@gmail.com wrote:
thanks for answer but for question clearly i take a part of my data:
phyto Temperature Salinity lat lon 6279.2833 28.40206 37.94621 27. 2106 52.3402
25285.117 28.70557 37.55017 27.1302 52.2808 34467.033 30.0357 37.5787 27.0408
52.2208
when i compare this with sample in cozigam pakage: i notice the lon in this
matrix is different ( you can see in dawn)
R head(eggdata)
bottom lon lat catch j.day year
1 170 -147.7500 59.3 0 99 1987
2 620 -147.7500 59.01333 0 100 1987
3 160 -148.3000 59.0 0 100 1987
4 135 -148.3167 59.35000 0 100 1987
5 175 -149. 59.0 0 101 1987
6 115 -149.0333 58.3 0 101 1987
the question is: i have to change the lon in my matrix as sample or no?
thanks
On Thu, Jul 5, 2012 at 8:21 PM, Holland, Jeffrey D
jdhol...@purdue.edumailto:jdhol...@purdue.edu wrote:
Hello Mahnaz,
Longitude is often expressed as distance or angle east of the prime
meridian, so negative means it is west. If I am reading your question
correctly, you are wondering how to change the longitude to make it negative?
If so, you could create a new variable that is -1 times the original latitude
for west coordinates, as in this example:
newlongitude - -1 * oldlongitude
If the coordinates are for the eastern hemisphere you should leave them as
positive values.
Jeff
__
Jeffrey D. Holland
Assoc. Prof. of Landscape Ecology Biodiversity
Dept. of Entomology, Purdue University
-Original Message-
From:
r-sig-ecology-boun...@r-project.orgmailto:r-sig-ecology-boun...@r-project.org
[mailto:r-sig-ecology-boun...@r-project.orgmailto:r-sig-ecology-boun...@r-project.org]
On Behalf Of Mahnaz Rabbaniha
Sent: Thursday, July 05, 2012 11:38 AM
To: r-sig-ecology
Subject: [R-sig-eco] plot data on base of lonlat
Hi groups
i want plot of phytoplankton density on base of Lon lat, as same as the
description on the cozigam package.
but the main problem is the form of matrix Lon parameters in the example on
eggdata that is negative ,how changed the longitude to this form ?
thanks all
Mahnaz
[[alternative HTML version deleted]]
___
R-sig-ecology mailing list
R-sig-ecology@r-project.orgmailto:R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
___
R-sig-ecology mailing list
R-sig-ecology@r-project.orgmailto:R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
[[alternative HTML version deleted]]
___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology