[R] Grid on Map

MacQueen, Don macqueen1 at llnl.gov
Wed Apr 6 21:49:03 CEST 2011

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 MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550

-----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
>want to know how can I do it.
>Help would be appreciated.
>    [[alternative HTML version deleted]]
>R-help at r-project.org mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list