Displaying 20 results from an estimated 1000 matches similar to: "USA map"
2003 Nov 10
3
Reading an upper triangular matrix
Hola!
I have data in the form of a symmetric distance matrix, in the file I
have recorded only the upper triangular part, with diagonal. The
matrix is 21x21, and the file have row and col names, and some other
information. I am trying to read with the following code (I tried
many variations on it, but all give the same error). The items in the
data file is delimited by white space.
(Part
2003 Oct 12
6
Rd problems
Hola!
I have the following in a .Rd file:
\eqn{\mbox{coef} = c(\mbox{coef}[1],\ldots, \mbox{coef}[n]) }
{coef = c(coef[1], coef[2], \dots, coef[n])}
However, both arguments come out in the latex file!
Whats happening?
Kjetil Halvorsen
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 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
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
2007 May 22
2
German Map in package maps
Hello everybody,
I'm an absolute newbe in R, so please be gentle to me.
I am looking for a german map in the package maps by Becker and Wilks.
After that I want to draw the German cities from world.cities of this package in the map and want to draw further a line from Berlin to Munich.
Has anybody an idea?
Thank you so much and sorry for the question!
Best regards from Berlin,
Maja!
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
2009 Nov 03
1
creating mulptiple new variables from one data.frame according to columns and rows in that frame
Dear R-helpers,
I have a data.frame (bcpe.lat.m) containing 13 countries, ages 0-50yrs per month, and the corresponding mu&sigma (see below).
* I would like to limit the age range to include all 12 months for the 1st 5 years and only whole years for all ages thereafter for each of the countries present in the data frame.
* I would like to create separate data.frames according
2009 Nov 05
4
collumn error when exporting to Excel
Dear all,
I am attempting to export my results (data.frame) created with the help of a number of you to Excel.
In the procedure my column structure is however lost and all results are placed together into the first Excel column.
I have tried: write(), write.table(), write.matrix(), export() and have the same results. I Have checked the import/export FAQ and did a Google search to no avail.
Any
2004 Mar 10
1
Map of British Colonial America 1775
Does anyone have suggestions about how to produce a map of British
Colonial America 1775? At that time, Great Britain had 26 colonies in
the Americas, including Bermuda, several Caribbean islands, "Quebec"
(extending then almost to New Orleans), Nova Scotia, Newfoundland,
Belize, and the 13 that declared independence in 1776.
I've reviewed the "map"
2003 Oct 20
1
bug in fisher test---p-value cannot be Inf (PR#4688)
I just found a bug in fisher.test(). This is rw1080, on windows XP.
A p-value can certainly not be Inf, but:
> religion
Costumbres rel orig
Religion Si Algunas veces Nunca
católica 2121 4700 6234
prot/evan 100 216 2461
otra C 27 67 502
otra 0 0 14
> fisher.test(religion, workspace=2000000)
2003 Nov 20
3
file not found?
Hi R maintainers:
when I use
update.packages()
And I try to update the package "maps"
maps :
Version 2.0-9 in D:/rw1080/library
Version 2.0-10 on CRAN
Update (y/N)? y
The following message appears:
trying URL
`http://cran.r-project.org/bin/windows/contrib/1.8/maps_2.0-10.zip'
Error in download.file(url, destfile, method, mode = "wb") :
cannot open URL
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
2007 Nov 13
2
map - mapproj : problem of states localisation
Hi R-user,
I am new with R and I have a problem with the map and mapproj fonctions :
with the following code :
>test_proj=mapproject(LONG_d01_vec_t1, LAT_d01_vec_t1, projection="lambert",
parameters=c(30,60))
>longitude_vec=test_proj$x
>latitude_vec=test_proj$y
>longitude_mat=matrix(longitude_vec,ncol=e_sn_d01)
>latitude_mat=matrix(latitude_vec,ncol=e_sn_d01)
2004 Oct 06
3
read.delim problem with trailing spaces
I'm trying to read a comma delimited dataset that uses '.' for NA. I
found that if the last field on a line was a missing '.'
it was not read as NA, but just a '.', and the life variable was made a
factor. The data looks like this,
income,imr,region,oilexprt,imr80,gnp80,life
Afghanistan,75,400.0,4,0,185.0,.,37.5
Algeria,400,86.3,2,1,20.5,1920,50.7
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
2007 May 04
1
Help with map
I have just learned how to play with map, but something weird
(or not) is happening.
Suppose I want to draw a map of two countries (that have disconnected
components), like Argentina and Brazil.
If I command:
library(maps)
library(mapdata)
map("worldHires", c("Argentina", "Brazil"))
It works fine. However, if I want to _colour_ the interior:
2008 Jan 17
1
Any tools for working with US 2000 census data?
I've been given the job of extracting some data from the United States
2000 census (files at
http://www2.census.gov/census_2000/datasets/Summary_File_2/Maryland/all_
Maryland.zip 52M). I'm only interested in Census Block Groups (CBGs)
located within Baltimore City, Maryland. Additionally, I just have to
extract certain data fields. I think I'll be using Summary File 2. This
is my first
2008 Feb 13
3
Generalized nonlinear mixed model function?
I am wondering if there is an R function that could estimate a generalized
nonlinear mixed model.
>From my reading it seems that nlme from the nlme package can fit nonlinear
mixed models, while lmer from the lme4 package can fit generalized linear
mixed models.
One alternative I?ve found is gnlmix from the repeated package, although
this only allows for a single random effect.
Is there
2003 Nov 18
3
Copula calculation in R?
Hello
Anyone that now of any function in R that can calculate copulas?
Or if anyone have any code avaible I would be more than interested.
Thank you in advance
/Thomas
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help