[R-sig-eco] plot data on base of lon&lat

Holland, Jeffrey D jdhollan at purdue.edu
Thu Jul 5 17:51:22 CEST 2012


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



More information about the R-sig-ecology mailing list