similar to: drawing filled countries according to data using map('world')?

Displaying 20 results from an estimated 8000 matches similar to: "drawing filled countries according to data using map('world')?"

2004 Mar 08
1
drawing filled countries according to data using map('world')? - follow up
Hello, this is a follow up on my previous inquiry regarding the use of the map library (Becker and Wilks 1993). Using the 'world' database I would like to draw filled countries in a world map so that the filling colors of each country corresponds to the value of a policy variable "fix.float" at a specific "year" (the goal is to visualize a policy diffusion pattern
2007 Mar 16
1
How can i do the same thing in the China map?
The "maps" package has a function called "match.map", which is for map coloring . Its example is followed: # filled map showing Republican vote in 1900 # (figure 6 in the reference) data(state, package = "datasets") data(votes.repub) state.to.map <- match.map("state", state.name) x <- votes.repub[state.to.map, "1900"] gray.colors <-
2011 Apr 18
4
(no subject)
Hai From which CRAN mirror can get the package ‘LPP2005REC’ Ram [[alternative HTML version deleted]]
2006 Dec 27
3
counties in different colours using map()
Hi, I would like to plot a map of US counties using different colors. map() seems to be the function to use, e.g. library(maps); map('usa'); map('county', 'colorado', add=T,fill = T, col=c(1:5)) plots Colorado counties using colours 1 to 5. However, I want each color to represent a certain value - a value to be picked from a data frame. This code should show a
2004 Apr 05
1
Drawing maps in R?
What tools and documentation exist for producing maps and working with polygon and polylist objects in R beyond the following: * Packages maps, mapproj, maptools, and mapdata. * Becker and Wilks (1993, 1995), listed as references in the documentation on the "map" function. Thanks, Spencer Graves
2007 Jul 18
1
creating a world map of eco-climatic zones
Hello R users: I would like to produce a world map with countries colored according to whether they fall into one of 7 eco-climatic zones. For simplicity, each country is allocated to exactly 1 eco-climatic zone. For this purpose I have looked at the map and mapdata packages, which contain world maps composed of polygons (1 for each country, it seems). Each of the polygons can be referred to by a
2006 Apr 24
1
Problem with the cluster package
Hi everybody, I want to use the cluster package (Cluster Analysis Extended Rousseeuw et al.). I downloaded it from the CRAN and installed it on my linux system (fedora core 4). All seemed to be allright. But when trying to launch examples, I obtained the following message : > library(cluster) > data(votes.repub) > agn1 <- agnes(votes.repub, metric = "manhattan",
2012 Jul 05
1
colored nodes in dendrogram
Dear list, is there a way how to add information to internal nodes (branching points) in dendrogram created via plot.agnes function (package cluster)? I wish to place colored circles on the nodes, but I don't know how to proceed... I'll be grateful for any suggestion Ond?ej -- Ond?ej Mikula Institute of Animal Physiology and Genetics Academy of Sciences of the Czech Republic Veveri 97,
2003 Oct 05
0
R maps now for Windows
The original S maps package, previously only available in R on Unix systems is now available in R for Windows. maps_2.0-2 and mapdata_2.0-2 (see below) in both source and Windows binary form (for rw1071) have been uploaded to CRAN, hopefully soon to appear. The key aspect of this package which differentiates it from other GIS related R packages under development is that it is standalone within
2003 Oct 05
0
R maps now for Windows
The original S maps package, previously only available in R on Unix systems is now available in R for Windows. maps_2.0-2 and mapdata_2.0-2 (see below) in both source and Windows binary form (for rw1071) have been uploaded to CRAN, hopefully soon to appear. The key aspect of this package which differentiates it from other GIS related R packages under development is that it is standalone within
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
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:
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()
2005 Jul 25
2
alaska map?
Hello, I've installed the Becker and Wilks maps, mapdata, and mapproj packages so I can begin to try these out for some work I need to do on a map of Alaska but I don't know where to find a map of Alaska. Has anyone solved this already and could help? Thanks very much in advance, Caitlin
2003 Jan 08
1
Lattice: Plotting two densities on the same plot(s)?
I am trying to plot two density lines on the same graph. Using the functions on the base package, I would go: plot(density(x), col = 1) lines(density(y), col = 2) And I get two distinct (one-bump) density lines. When I try to do it using lattice, I get two two-humped lines. (In other words, I think the smoothing function is taking the next set of data points and smoothing them in the same
2006 Mar 08
3
bug in map('world') ?
hi, did'nt see anything in the archive: map('world',pro='rectangular',para=0) yields a strange artifact (horizontal bar) extending over the whole map at a certain latitude range (approx 65 deg. north), whereas map('world',pro='rectangular',para=180) (which should be the same) does not show the artifact. the artifact shows up in other projections as well,
2011 Apr 18
3
(no subject)
Hai i just wanted to know how we can find the package of a dataset, eg: how can i find the package in which the dataset *iris* is present Ram [[alternative HTML version deleted]]
2012 Jul 05
1
Different level set when predicting with e1071's Naive Bayes classifier
Hi! I'm using the Naive Bayes classifier provided by the e1071 package ( http://cran.r-project.org/web/packages/e1071) and I've noticed that the predict function has a different behavior when the level set of the columns used for prediction is different from the ones used for fitting. From inspecting the predict.naiveBayes I came to the conclusion that this is due to the conversion of
2012 Aug 13
1
Fine Tuning Country Map
Dear All, Please see the short script at the end of the email, which I assembled looking for bits and pieces on the web. It essentially does what I need: it plots several countries as a color-coded map. I just would like to fine-tune a bit the final image, in particular (1) Select my own colors for "painting" the countries (i.e. associate manually a color to every level) (2) Be
2009 Jan 13
1
Drawing Polygons with xyplot in lattice
Hello: I've come to a dead-end in my search for a solution to a graphing problem that I am encountering. I have used xyplot (from the lattice package) successfully to plot 36 time-series plots (lines) of under-5 mortality for a set of countries in Sub-Sarahan Africa. What I would now like to do is to add vertical bands (rectangles) that correspond to time-periods during which each of the 36