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.mahnaz@gmail.com]
Sent: Thursday, July 05, 2012 12:10 PM
To: Holland, Jeffrey D
Subject: Re: [R-sig-eco] plot data on base of lon&lat

excuse me it is necessary revised the my data matrix:
phyto         Temperature         Salinity                  lat                  lon
6279.283333   28.40206061   37.94621212   27. 2106          52.3402
25285.11667   28.70556522   37.55017391   27.1302           52.2808
34467.03333   30.0357                  37.5787          27.0408    52.2208

  thanks


On Thu, Jul 5, 2012 at 8:35 PM, Mahnaz Rabbaniha <rab.mahnaz@gmail.com<mailto:rab.mahnaz@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.33333 0 99 1987
2 620 -147.7500 59.01333 0 100 1987
3 160 -148.3000 59.03333 0 100 1987
4 135 -148.3167 59.35000 0 100 1987
5 175 -149.0000 59.00000 0 101 1987
6 115 -149.0333 58.33333 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 <jdhollan@purdue.edu<mailto:jdhollan@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-bounces@r-project.org<mailto:r-sig-ecology-bounces@r-project.org> [mailto:r-sig-ecology-bounces@r-project.org<mailto:r-sig-ecology-bounces@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 lon&lat

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.org<mailto: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.org<mailto:R-sig-ecology@r-project.org>
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology






	[[alternative HTML version deleted]]

