Displaying 20 results from an estimated 100 matches similar to: "Help with map"
2004 Feb 03
4
filled maps
Hi R-Help,
I would like to make filled contour maps of ocean data overlaid by
costlines from the map package.
I can draw the filled contours and the coastlines om the same plot, but
the filled contour also covers part of the land. To get rid of that I
tried to draw a filled coastline map on top of the filled contour, but
the filled map only draws the closed contours - so most of the land is
2013 Jul 16
1
Masking oceans using polypath
Hi R-help
I am trying to mask the ocean from an image plot I have made.
Here is some example code:
library(mapdata)
image(x=110:155, y =-40:-10, z = outer(1:45, 1:30, "+"),
xlab = "lon", ylab = "lat")
outline <- map("worldHires", plot=FALSE) # returns a list of x/y coords
xrange <- range(outline$x, na.rm=TRUE) # get bounding box
yrange
2003 Nov 03
10
USA map
R users,
In S, there was a function called usa() that
would draw the map of the United States, plus
it had other options for graphics. I have looked
but I can't find the equivalent in R. Is there one?
Thanks,
Jason
2011 Jul 14
1
calculating distance inland from coastline
Hi All,
Does anybody know of any existing functions that will calculate distance
inland from a coastline?
It's possible to test if a lon,lat location is land or sea using
map.where(), but I need to add a buffer to this of say 2km, to allow for
points that are just on the coast, and below the resolution of the
worldHires database.
I'm working with a marine mammal satellite telemetry
2009 Nov 19
2
plot filled.contour over continent map
Dear all,
As a newbie in R I would like to do the following (simple?) thing:
to plot a filled.contour plot over a map showing country boundaries (e.g. for Europe)
What i do is:
map('worldHires',xlim=c(-10,40),ylim=c(35,70),boundary = TRUE,border=0.1)
map.axes()
filled.contour(mslp, zlim=c(1000,1020),color.palette = colorRampPalette(c("blue", "white",
2005 May 31
3
labels on map
dear all:
Im trying to obtain maps on R, under mapdata library, but I cannot define the labels.
Here is an example:
library(mapdata)
map("worldHires", c("portugal","spain"),ylim=c(34,46),xlim=c(-14,3.5))
axis(1,at=seq(-12,3,3))
axis(2)
when I try the parameter xlab or ylab in axis, i get:
parameter "ylab" couldn't be set in high-level plot()
2010 Aug 02
1
read the middle of a file
Hello,
The other day Justin Peter presented a mini program to plot a topographic map with an overlay of the worldHires. I seemed interesting so I checked the ETOPO5 site and find that there is a new file ETOPO1 with a 1 minute grid. I downloaded it and tried a similar procedure. Now the ETOPO1.gz is 1 Gb and the uncompressed file is 5 Gb. They do not fit into my laptop. I tried the following
2005 May 22
2
Maps, Eastern Europe
Dear all,
I would like to employ a European map in a presentation. My idea was to
use:
library(mapdata)
map("worldHires", c("Austria", "Switzerland", "Germany"))
where I include all countries from my analysis as a vector of character
strings like in the example above. Unfortunately, I was unable to
specify the Baltic States (Latvia, Lithuania, Estonia) or
2007 Aug 14
3
diffusing GIS data in maps
Hi-
I am trying to find a way to diffuse GIS data on a European map. I have a
dataset consisting of particular locations scattered across Europe,
along with magnitude and value information. I can plot these as discrete
points with something like the following:
"geocode" is a dataframe with four columns: LAT; LONG; MAGNITUDE;VALUE.
library(maps)
library(mapdata)
2008 Apr 11
1
polygons on scatterplot3d
Does anyone have any experience plotting complex polygons on a
scatterplot3d display? I would like to present some spatially binned
data in a 3-d type plot with background polygons (i.e.. a filled
coastline map). I can get the coastline onto the plot window as a
line type but cannot figure out how to fill the shape. I'm certain it
may be possible but might require a bit of digging
2010 Oct 11
2
filled.contour: colour key decoupled from main plot?
Dear R colleagues,
I am trying to plot some geophysical data as a filled contour on a continent map and so far the guidance from the R-help archives has been invaluable. The only bit that still eludes me is the colour key (legend) coming with filled.contour:
I prefer to generate my own colour palette, mainly based on the quantiles of tenths of the data in order to capture the whole range (of
2011 Jul 09
1
SpatialPolygonsDataFrame holes problem
I have obtained shapefiles for Indian states from here:
http://www.maptell.com/index.php?option=com_remository&Itemid=159&func=fileinfo&filecatid=115&parent=category
Problem: I want to extract centroid coordinates for each State, but there is some coding problem with the shapefiles that prevents this.
#Code:
#After extracting the shapefiles from the india_state.zip file, then:
2007 Oct 11
1
maps does not work
Hello,
I am trying to draw geographical maps with the maps package. However
if I try to access the data following error occurs:
> require(maps)
> map()
Fehler in zip.file.extract(file, "Rdata.zip") :
'destination' existiert nicht
# Error in zip.file.extract(file, "Rdata.zip") : 'destination' does not exist
> traceback()
4: zip.file.extract(file,
2006 Mar 14
2
map question
Would anyone with experience with the map functions know how to divide
Czechoslovakia into the Czech Republic and Slovakia. They have been two
separate countries for some time now. I'm thinking about the worldhires
map database in particular.
--
Dean Sonneborn, MS
Programmer Analyst
Department of Public Health Sciences
University of California, Davis
(530) 754-9516
2006 Mar 29
1
Plotting shapefiles on existing maps
Dear All,
This is probably a very basic question but:
I have plotted a map of the Barents Sea and surrounding coastline using:
map('worldHires',ylim=c(50,85),xlim=c(5,65),fill=T,resolution=0)
map.axes()
map.scale(x=30,metric=T)
Next, I imported a shapefile with depth contours for the sea:
contours<-read.shape("D://My Documents/BarentsSea.shp",dbf.data=T)
(This is in
2010 Apr 21
1
overlaying a levelplot on a map plot
I've generated a levelplot showing the density distribution of a species
derived from survey transects, with lon, lat co-ordinates.
I'd like to overlay this on a map of the study region specified by:
map('worldHires', xlim = range(mlon), ylim = range(mlat)), where mlon, mlat
specifies the study region.
I've tried plotting the map first, then using the options: 'add=TRUE,
2009 Apr 24
3
Text Contrast in a Plot
Hi List,
I would appreciate any suggestion on how can I make a text I’ve inserted in
a plot show some contrast? With this I mean that I have a white text on a
plot and I would like to make a tiny border around it in black, so even
being small sized and the entire graphic being small in the text page I’ll
insert it. It will be visible.
Well I tried inserting a box() function inside the text()
2004 Aug 19
3
Do you know if you can map a large minimum spanning tree in R?
Thanks Mike.
My data has longitude and latitude coords and I used distAB {clim.pact}
then mst {ape} to calculate my minimum spanning tree. The nodes are
telecoms sites from all over Australia. My goal is to determine the
minimum cost of linking them via cabling, and I'm starting by
calculating the distance "as the crow flies", but will probably
eventually need to calculate the
2002 May 30
2
Winbind, again...
I recently posted a mail about problems with winbind... I'll try to be more
specific:
I have Redat 7.3
Followed those steps:
Compiled samba 2.2.4
Configured nsswitch.conf and the winbind libraries
Configured smb.conf:
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
winbind use default domain = yes
username map =
2011 May 10
7
Webrick script/server file does not exist
Hello all,
I worked fairly enough with PHP and MySQL, but am very new to Ruby.
I have Windows machine with Apache and MySQL installed previously.
Both Apache and MySql were stopped while installing Ruby.
I tried several ways to install Ruby 1.8.7 and one-step installer.
I can use Ruby with netbeans 6.0.1 with its own Ruby or with the one I
installed now.
The problem starts when I try to create