Displaying 20 results from an estimated 2000 matches similar to: "thematic map of USA"
2008 Aug 03
0
gmaps, projection, inset
Running R version 2.6.1 under Gentoo Linux, I'm trying to produce a
thematic map of the USA using the gmaps package. The result thus far
has two problems from my point of view.
First, the projection (Miller cylindrical?) elongates southern states
and flattens northern ones unattractively. I'd prefer Albers conic
projection or something similar.
Second, the inset for Alaska is placed
2008 Aug 12
1
separate maps in one figure
My aim is to create a figure consisting of three maps: Alaska in the
upper left corner, the 48 contiguous US states in the center right, and
Hawaii in the lower left corner. In some ways the figure I'm trying to
create is analogous to figure 1.5 in Paul Murrell's excellent "R
Graphics", which combines a map of New Zealand with a map of the world.
I tried adapting the code
2008 Aug 15
1
map("state" ...) Is the USA cracking up?
Running R version 2.6.1 under Linux, I'm trying to use the maps and
mapdata packages and the state database to produce a thematic map of the
USA. My problem is that cracks (white spaces) appear between some
states--e.g. between Colorado and Utah and between Michigan and Indiana.
The resulting visual impression is that the country is breaking up.
This occurs in all the projections I have
2008 Aug 02
0
thematic maps, missing data, gmap
Running R version 2.6.1 under Gentoo Linux, I'm trying to produce a
thematic map of the USA using the gmap package and its function
USALevelPlot. The variable whose levels are to be plotted is observed
for 49 states but missing for one (Delaware).
I would like to produce a map in which the states for which data exist
are shaded and Delaware is represented only by an outline. In contrast
2007 Sep 13
1
minimize white space around lattice plot
Dear list,
I'm trying to produce a plot via xyplot with minimal sourounding white
space. However, I cannot find the options in xyplot, ps.options or
wherever which prevents lattice from drawing quite some white space
around my plot. However, this is quite a problem for me as I want to
produce an inset plot inside another lattice-plot. I'm using the panel
function to open a viewport and
2007 Oct 18
1
Lattice fails to draw insets
Hello all lattice experts!
I'm currently trying to plot inset figures in my lattice graphics. The
plot is composed out of two panels and in each panel I want to show an
inset figure which is a closeup of the data in each panel. Thus in each
panel I call xyplot again to plot the inset which I place in a grid
viewport. Nevertheless, once my first inset plot is drawn, lattice
aborts with an
2008 Feb 18
1
Plotting a legend outside the figure - units
Dear R gurus,
I am trying to plot a legend in the margins of a figure. The basic idea is to have two (or more) plots on the same figure, but then to have a common legend at the bottom of the plot. The approach that I have taken is to setup the figures, then do a "dummy" plot of the legend to determine the height of the legend box (ie from the value returned by the legend() command). I
2006 May 10
2
Legend titles in log plots broken? (ver. 2.2.1)
Legend titles work in linear plots:
curve(1/x, xlim = c(0, 1))
legend(x = 'topright', inset = 0.04,
legend = '1/x', lty = 1,
title = 'Legend Title')
But when you change to a log plot on either dimension things get screwy:
curve(1/x, xlim = c(0, 1), log = 'y')
legend(x = 'topright', inset = 0.04,
legend = '1/x', lty = 1,
2012 Apr 20
1
Ternaryplot as an inset graph
Hello
I am trying to add a ternary plot as a corner inset graph to a larger
main ternary plot. I have successfully used add.scatter in the past for
different kinds of plots but It doesn't seem to work for this particular
function. It overlays the old plot rather than plotting as an inset.
Here is a simple version of what I'm trying. Note that if I change the
inset plot to be an ordinary
2005 Dec 06
2
figure with inset
I am trying to plot a figure within a figure (an inset that shows a closeup of
part of the data set). I have searched R-help and other sources but not found a
solution.
What I would like to do is
(1) produce a plot
(2) specify a window that will be used for the next plot (in inches or using the
coordinate system of the plot produced in (1)
(3) overlay a new plot in the window specified under (2)
2008 Dec 05
1
Trouble with gridBase and inset plots
Dear All,
I ma having a trouble in generating a figure containing 3 insets with
the gridBase package.
I always get an error message of the kind:
Error in gridPLT() : Figure region too small and/or viewport too large
No matter which parameters I choose. The plots works nicely with two
insets only, but when I try adding the third one, my troubles begin.
I am probably doing something wrong in the
2009 Feb 25
2
A Modest Definition List Proposal (David E. Wheeler)
Taking David's example further, here is a first try:
id | name | description | more info
-----+---------+-------------------+-----------------
6 | Inset | An inset element | just one element
8 | Stories | Another element | another element
: with 2 lines, without
: colons on the left.
9 | Other
2004 Mar 04
4
Accurate area map projections
Hi,
Could any one point me to the projection, and parameters if necessary, that
would show each country/continent with it's area accurately refelcted on the
plot? E.g. aitoff vs. albers vs. bonne vs. cylequalearea vs. guyou - they
don't all look the same to mee but some of the documentations suggests they
are equal area? Of course this isn't my field, so I am largely guessing and
am
2010 Nov 19
1
Color Alaska in USA map
Hello:
I have a problem when I tried to color the USA map with different colors. The following is my data (I only used the second column of data):
alaska, 1, 2
Hawaii, 0, 0
USA, 5, 5
And here is my code:
library("latticeExtra")
library("mapproj")
state<-read.table("C:\\usaclass.txt",sep=",")
state
2011 Sep 27
2
inset one map on top of another map
I want to overlay a small inset map on top of another map, but I can't
figure out how to do it.
For example, here are two different maps:
# map 1 - Ohio
map("state", region= "ohio")
# map 2 - US with Ohio darkened
map("state")
map("state", region="ohio", fill=T, add=T)
I would like to add map 2 as a small inset in the corner of map 1.
I
2009 Jan 30
1
run query using rexcel runrfile and rodbc sql query
Hi,
I'm using R-2.8.1 for windows. I wrote a script calls the RODBC
package to run sql queries against an oracle database. It runs fine
when run from the rconsole and returns a data.frame with a summary for
a set of experiments. I want to run this script using the
rinterface.RunRFile command in an excel plugin, using the rexcel
package. When I run the code from my excel plugin I
2008 Jan 02
3
USA map with all states
Hi R Gurus!
There was a function in S called "usa()" which would plot the US.
I found map('usa') in R for the lower 48 states. Is there a way to
include Alaska and Hawaii as well, please?
Thanks,
Edna Bell
2004 Feb 26
2
limit to complex plots?
Hello all.
I am trying to create one figure, divided into 6 graphs/plots each with an inset sub-figure. I can use to layout command to generate one figure with one inset sub-figure, but cannot seem to do it for multiple figures on one page.
I've tried a test with the following code:
layout(matrix(c(1,2,3,4), nrow=2, byrow=TRUE))
plot(rnorm(10), rnorm(10))
plot(rnorm(10), rnorm(10))
2006 Feb 09
1
converting lat-long coordinates to Albers Conical Equal Area coordinates
####################################################################################
We have used maptools to construct state, county, township, census-tract,
and zipcode
level R maps with an Albers Conical Equal Area projection. We would like
to be able to
plot the location of weather stations or other point locations on the
maps. The data
the point locations are in latitude-longitude units
2007 Oct 30
1
Sweave line length
Hello,
I am trying to add R code to my dissertation and the length of a line
of text that Sweave generates is longer than the right margin in my
dissertation. I have found no way to tell Sweave how to set the line
length. I am using an iMac with tiger ver. 10.4.10, and R: ver.
2.5.1. Here is the R code that is longer than my right margin:
input to Sweave: