Re: [R] Grid on Map

From: Ray Brownrigg <Ray.Brownrigg_at_ecs.vuw.ac.nz>
Date: Fri, 08 Apr 2011 07:18:08 +1200

Have a look at
?mapproject

When you use a projection with map(), you subsequently have to transform your lat/long coordinates to conform to the projection.

HTH
Ray Brownrigg

On 8/04/2011 6:11 a.m., Jaimin Dave wrote:
> Hi,
> I tried it using abline but it is not showing any o/p(i.e no grids are
> formed on map). I did following :
>
> map('state','new york',proj='azequalarea',orient=c(42.5,-74.56,0))
> abline(h=seq(41, 44, length=3))
> abline(v=seq(-79, -76, length=3))
>
> I also tried using map.grid() but in some cases it is dividing into exact 4
> quadrants.
>
> On Wed, Apr 6, 2011 at 2:49 PM, MacQueen, Don<macqueen1_at_llnl.gov> wrote:
>
>> Possibly something similar to
>>
>> abline(v=seq(long.min, long.max, length=3)
>> abline(h=seq(lat.min, lat.max, length=3)
>>
>> ?
>>
>> The above will add vertical and horizontal lines to an existing plot, and
>> assumes that the plot is in long/lat coordinates. Of course, this ignores
>> the fact that long/lat is not a cartesian coordinate system.
>>
>> (can't provide more detail without more information)
>>
>> -Don
>>
>> --
>> Don MacQueen
>>
>> Lawrence Livermore National Laboratory
>> 7000 East Ave., L-627
>> Livermore, CA 94550
>> 925-423-1062
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: Jaimin Dave<davejaiminm_at_gmail.com>
>> Date: Mon, 4 Apr 2011 18:39:45 -0700
>> To: "r-help_at_r-project.org"<r-help_at_r-project.org>
>> Subject: [R] Grid on Map
>>
>>> I am new to R.I want to draw grid from a csv file which contains latitude
>>> minimum ,latitude maximum ,longitude minimum ,longitude maximum.The grid
>>> should be divided into exactly 4 quadrants. The map is of NY state of
>>> USA. I
>>> want to know how can I do it.
>>> Help would be appreciated.
>>>
>>> Thanks
>>> Jaimin
>>>
>>> [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> R-help_at_r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 07 Apr 2011 - 19:26:08 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 07 Apr 2011 - 19:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive