Displaying 7 results from an estimated 7 matches for "mapplot".
Did you mean:
maplot
2010 Nov 19
1
Color Alaska in USA map
...5, 5
And here is my code:
library("latticeExtra")
library("mapproj")
state<-read.table("C:\\usaclass.txt",sep=",")
state
range<-with(state,range(state[1:3,3]))
range
nbreaks=6
breaks<-do.breaks(range,nbreaks)
StateName<-state[1:3,1]
StateName
mapplot(StateName~state[1:3,3],data=state,breaks=breaks,
map=map("world", c("USA", "Hawaii"), fill=TRUE) ,scales=list(draw=FALSE),
colramp = colorRampPalette(c("white", "black")),xlab=NULL)
After I run this code, the continental USA could be colored, but...
2010 May 14
2
help color coding map in R
I am trying to create a map with selected states based on highest to lowest mean cost. The following code properly selects the correct states, and the legend is properly color coded with ranges, but the colors per range does not match the state colors. I need help getting the state colors to match the ranges outlined in the legend. I have tried ordering the mean amounts and this correctly creates
2009 Feb 06
1
Introduction to maps (of Denmark)?
...dows Vista 64-bit. I have no experience working with
maps, but now I have to plot a map of Denmark in which each Danish
county is color-coded according to its incidence rate of a particular
disease. My problem is that I don't know where to start. I have read the
help files to packages like 'mapplot', and their examples indicate that
I am on the right track, but where do I find a suitably detailed map of
Denmark, and which format should I prefer? The terminology in the help
files etc. is overwhelming.
Thank you in advance for any help.
Best regards,
Peter.
***
R version 2.8.1 (2008-12-2...
2012 Nov 20
2
[lattice] how to overlay a geographical map on a levelplot?
...il/r-sig-geo/2012-November/016757.html
> summary: How to overlay a geographical map on each panel in a lattice
> (or Trellis), e.g., of levelplot's? Note I am not inquiring about
> creating choropleth maps[,]
which Sarkar 2008 covers quite well (and which is supported by
latticeExtra::mapplot): I just want to appropriately overlay a
garden-variety boundary-line map on panel viewspaces defined by
longitude and latitude.
A relatively small, quite self-contained example follows the quote
above, in which I plot toy data in the sort of lattice layout I need ...
except that each panel lacks...
2003 Jan 08
2
Maps in R
Is there a way to generate maps in R. Specifically, I have calculated
estimates of intra-regional inequality for US states, and would like to
project that information onto a map.
Thanks,
Nirmala
2012 Feb 01
3
Plotting bar graph over a geographical map
Hi,
I am looking for a way to plot bar on a map instead of the standard points.
I have been using ggplot2 and maps libraries.
The points are added with the function geom_point. I know that there is a
function
geom_bar but I can't figure out how to use it.
Thank you for your help,
Simon
### R-code
library(ggplot2)
library(maps)
measurements <-
2010 Aug 09
4
Pie Chart in map
Hey R'rs,
So im sick of dealing with ESRI products and am looking to stream line a
process i now use GIS to do using R. I have made a lot of maps using R but
have not yet seen a map that puts pie charts within the map to help
represent data like the attachment.
http://r.789695.n4.nabble.com/file/n2318816/template1.bmp
I found Tanimura et al. work "Proportional Symbol Mapping in