Displaying 15 results from an estimated 15 matches for "coord_map".
2012 Mar 20
1
passing xlim to coord_map in ggplot2
...chigan <- map_data('county', 'michigan')
mich_points <- data.frame(x = rnorm(n = 200, median(michigan[,1]), 0.75), y
= rnorm(n = 200, median(michigan[,2]), 0.75))
ggplot() + geom_path(aes(long, lat, group = group), data = michigan) +
geom_point(aes(x, y), data = mich_points) + coord_map('gilbert', xlim =
c(-86, -84))
This generates the following error:
*Error in unit(x, default.units) : 'x' and 'units' must have length > 0*
#Where tank_trunc is a data.frame with two columns, 'lon' and 'lat'
containing point coordinates in storage mode ...
2008 Dec 03
3
Help with maps
...tp://www.ai.rug.nl/~hedderik/R/US2004/map.r ) ? I have geographic (e.g. country, state, county, zip code) count data in a data frame that I would like to represent on a map, but still need to study how map.r works, especially the map.center function...
(3) The examples at http://had.co.nz/ggplot2/coord_map.html are great. Adding another example that with color codes for counts from a data frame would be very useful too.
(4) Is there a reason why I can produce a map of France but not the UK ?
>library(maps)
>library(ggplot2)
>library(mapproj)
>(qplot(x, y, data=(data.frame(map("...
2008 Jan 11
0
New version of ggplot2: 0.5.7
...required aesthetics now listed in documentation
* geom_polygon now has a decent example
* numerous minor corrections suggested by J?rg Beyer
* separated plotting advice from details of plot construction (what
vs how), thanks to Bert Gunter for this suggestion
Improved map projections (with coord_map)
* coord_map defaults to orientation = c(90, 0, mean(range(y))) -
this ensures that multiple layers line up correctly, but means you
will have to specify the orientation yourself for many projections
* coord_map now respects limits set by scales
* removed useless ticks from coord_map
If you...
2008 Jan 11
0
New version of ggplot2: 0.5.7
...required aesthetics now listed in documentation
* geom_polygon now has a decent example
* numerous minor corrections suggested by J?rg Beyer
* separated plotting advice from details of plot construction (what
vs how), thanks to Bert Gunter for this suggestion
Improved map projections (with coord_map)
* coord_map defaults to orientation = c(90, 0, mean(range(y))) -
this ensures that multiple layers line up correctly, but means you
will have to specify the orientation yourself for many projections
* coord_map now respects limits set by scales
* removed useless ticks from coord_map
If you...
2007 Nov 23
1
ggplo2: fixed extent greater than data?
...to produce a series of maps with different data on, but exactly the
same extent in each plot. Is there a way of switching the automatic extent
(to the data of the last layer added) OFF? I'm trying something like:
drawOverviewMap<-function(){
p2<-ggplot(xlimits=c(2,20),ylimits=c(43,50))+coord_map(project="azequalarea")
p2<-p2+geom_path(data=wa,mapping=aes(x=x,y=y))
p2<-p2+geom_point(data=spts,mapping=aes(x=Lon,y=Lat))
return(p2)
}
If I plot this in cartesian coordinates, it will zoom to the extent of the
country boundaries "wa", plus some extra space around it...
2018 Mar 19
1
Labelling a fortified GADM map plotted with ggplot and geom_map
...#takes the data from tract
color = "#ffffff", #makes the color of the borders between regions white
size = 0.15) + #sets the thickness of the boarder lines
coord_map("polyconic") + #sets the coordinates to polyconic (rounded lat and long)
scale_fill_gradient(name = "Children Reached", #sets the gradient of the value scale: names the scale
low = grey_2,...
2010 Mar 13
0
ggplot2: version 0.8.7
...heck out the nearly 500
examples of ggplot in use. If you're interested, you can also sign up to
the ggplot2 mailing list at http://groups.google.com/group/ggplot2, or track
development at http://github.com/hadley/ggplot2
ggplot2 0.8.7 (2010-03-03) ----------------------------------------
* coord_map gains xlim and ylim arguments to control region of projection
* corrected label generation for computed aesthetics (..x..) and special
names (`x x`)
* fullseq: now always returns vector of length two, even when range is 0
* geom_point legend takes more care to ensure that fill colours will be sho...
2010 Mar 13
0
ggplot2: version 0.8.7
...heck out the nearly 500
examples of ggplot in use. If you're interested, you can also sign up to
the ggplot2 mailing list at http://groups.google.com/group/ggplot2, or track
development at http://github.com/hadley/ggplot2
ggplot2 0.8.7 (2010-03-03) ----------------------------------------
* coord_map gains xlim and ylim arguments to control region of projection
* corrected label generation for computed aesthetics (..x..) and special
names (`x x`)
* fullseq: now always returns vector of length two, even when range is 0
* geom_point legend takes more care to ensure that fill colours will be sho...
2007 Sep 27
1
curvilinear grid
Hello all:
A question from a new user. I have data on a geo-referenced curvilinear
grid. This is a grid with 75 rows and 51 columns, is not aligned
north-south, and the rows and columns are not straight. (And the
coordinates are in meters.) I want to make image plots of this data,
but where the grid is deformed according to the correct locations of the
grid points, instead of coming out
2011 Feb 14
2
how to overlay a map of US on image plot
Dear all,
I have a data set which has latitude, longitude (not in increasing order)
and observed precipitation corresponding to those locations. I am using
image.plot command for that. But I want to overlay a map of US on that plot.
I know we can use map('usa') to draw it, but I dont know how can I overlay
it on the plot of the precipitation data. Can anyone please help me with it?
2009 Dec 22
0
ggplot2 version 0.8.5
...dientn now
have formatter argument to match scale_continuous
* updated citation to refer to the ggplot2 book
Bug fixes
* coord_cartesian now correctly sets limits when one or both of the position
scales are non-linear. (fixes #17)
* coord_equal: now works with non-linear scales (fixes #13)
* coord_map sets aspect ratio correctly (fixes #4)
* coord_polar correctly combines labels on end of axis if expressions
(fixes #39)
* coord_trans now respects scale expand parameter (expansion occurs after
transformation) (fixes #14)
* facet_grid with scales = "free" and space = "free"...
2009 Dec 22
0
ggplot2 version 0.8.5
...dientn now
have formatter argument to match scale_continuous
* updated citation to refer to the ggplot2 book
Bug fixes
* coord_cartesian now correctly sets limits when one or both of the position
scales are non-linear. (fixes #17)
* coord_equal: now works with non-linear scales (fixes #13)
* coord_map sets aspect ratio correctly (fixes #4)
* coord_polar correctly combines labels on end of axis if expressions
(fixes #39)
* coord_trans now respects scale expand parameter (expansion occurs after
transformation) (fixes #14)
* facet_grid with scales = "free" and space = "free"...
2008 Nov 21
0
ggplot2 - version 0.8
...atter
argument to control the default formatting of the axis labels. See
also the handy numeric formatters: dollar, comma and percent
* the xlim and ylim functions now produce discrete scales when
appropriate, and generate a reverse scale if the minimum is greater
than the maximum
Improvements
* coord_map gains experimental axis labels
* facet_grid: new support for varying scales in rows and columns
* facet_wrap: new faceter which wraps a 1d ribbon of panels into 2d,
in a similar way to lattice
* geom_bin: gains a drop argument to control whether or not 0 count
bins should be removed
* geom_path and...
2008 Nov 21
0
ggplot2 - version 0.8
...atter
argument to control the default formatting of the axis labels. See
also the handy numeric formatters: dollar, comma and percent
* the xlim and ylim functions now produce discrete scales when
appropriate, and generate a reverse scale if the minimum is greater
than the maximum
Improvements
* coord_map gains experimental axis labels
* facet_grid: new support for varying scales in rows and columns
* facet_wrap: new faceter which wraps a 1d ribbon of panels into 2d,
in a similar way to lattice
* geom_bin: gains a drop argument to control whether or not 0 count
bins should be removed
* geom_path and...
2010 Jun 23
1
Plotting Data on a Map
...help you in translating the sp object to a
>>>>> data.frame. Then you can use merge to join the two tables. The code bellow
>>>>> illustrates this, although I think there are some problems in matching country
>>>>> names. Another issue is that if you add coord_map(), something strange happens
>>>>> with Antarctica (maybe a problem in shapefile order?).
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>
>&g...