+ coord_equal()
Or if x and y are long and lat, + coord_map()
Hadley
On Sun, Nov 7, 2010 at 1:55 PM, Edzer Pebesma
wrote:
> Paul, this nicely illustrates the power of ggplot2.
>
> In the resulting plot, however, it seems to me that the
>
> + opts(aspect.ratio = 1)
>
> does not result in the des
>> For some reason the r-forge pages don't show anymore how r-forge
>> packages can be installed. As they always did, I didn't bother to
>> remember. Could you tell us, so we can alpha test, and perhaps add this
>> to the rgeos page on r-forge? (Better would be someone repaired r-forge,
>> which se
On Wed, Jun 9, 2010 at 3:24 PM, Edzer Pebesma
wrote:
> The example provided by Matt assumes that each polygon consists of a
> single ring, and doesn't have islands, lakes etc. The function below
> pasts all coordinates to a single 2-column matrix. For clarity's sake, I
> avoided nested sapply's.
>
Hi Paul,
You're missing the group specification:
ggplot(dum, aes(x = long, y = lat)) + geom_path(aes(group = group))
Hadley
On Tue, Apr 27, 2010 at 4:17 AM, Paul Hiemstra wrote:
> Hi people,
>
> I have a question regarding plotting a SpatialPolygonsDataFrame using
> ggplot2. To convert the SPD
> They limit, however, the number of geocode requests to 15,000 in a 24 hour
> period. If the url connection breaks, then it might be a good idea to run the
> same loop one more time and set add a while command to look for the missing
> coordinates.
It's also against the terms of service to use
On Mon, Dec 7, 2009 at 1:06 PM, Mark Na wrote:
> Hello,
>
> I have used the following command:
>
> datalist<-list(data1,data2,data3,data4,data5,data6)
>
> to make a list of my dataframes, which I then manipulated with these
> commands:
>
> datalist<-llply(datalist,"LogDepth")
> datalist<-llply(dat
the complexity
>> of vectors like these.
>>
>> Cheers,
>> Dylan
>>
>> On Sun, Apr 26, 2009 at 3:53 PM, hadley wickham wrote:
>>> Hi Enrico,
>>>
>>> I have some code to do map generalisation (reducing map resolution
>>> withou
ralize command in GRASS to reduce the complexity
> of vectors like these.
>
> Cheers,
> Dylan
>
> On Sun, Apr 26, 2009 at 3:53 PM, hadley wickham wrote:
>> Hi Enrico,
>>
>> I have some code to do map generalisation (reducing map resolution
>> without vis
Hi Enrico,
I have some code to do map generalisation (reducing map resolution
without visible loss in detail) at
http://github.com/hadley/data-counties/tree/master. It's applied to
counties data, but would be trivial (if slow) to modify to work with
zip codes instead
Hadley
On Sun, Apr 26, 2009
> It would be great if you could put your code
> in the wiki
> http://wiki.r-project.org/rwiki/doku.php?id=tips:spatial-data
I don't mind if the code is put on the wiki, but I don't want to keep
it up-to-date in to places, and people will be able to use it directly
from the next release of ggplot2
I have the following code in ggplot2 for turning a SpatialPolygon into
a regular data frame of coordinates. You'll need to load ggplot2, and
then run fortify(yoursp).
fortify.SpatialPolygonsDataFrame <- function(shape, region = NULL) {
attr <- as.data.frame(shape)
# If not specified, split in
On Fri, Mar 13, 2009 at 7:55 AM, Robert Hijmans wrote:
> I think the solution is using 'merge'
>
> soil.fe <- data.frame(
> ID =c(1,1,1,1,2,2,3,3,4,5,5,5,5,5,9,9,9,9,9,9,10,10),
> K
> =c(6.25,12.50,25.00,50.00,80.00,12.00,6.25,12.50,25.00,50.00,76.00,67.00,67.00,56.00,98.00,32.00,33.00,43.00,54
Hi all,
Is anyone aware of any code for performing topologically consistent
polygon thinning/simplification/generalisation in R?
Hadley
--
http://had.co.nz/
___
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/
> Thanks very much, Hadley. However, it doesn't work for me, using
> ggplot2_0.7, even when adding
I'm not surprised - you'll need version 0.8
Hadley
--
http://had.co.nz/
___
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/ma
On Wed, Dec 3, 2008 at 8:33 AM, Michael Friendly <[EMAIL PROTECTED]> wrote:
> Hi
> I'm working with some historical data on determinations of longitude used by
> Michael F van Langren
> in 1644 to draw what is believed to be the first graph of statistical data.
> The values are estimates
> of the d
On Wed, Oct 15, 2008 at 6:06 PM, Thomas Lumley <[EMAIL PROTECTED]> wrote:
>
>
> I am trying to draw a US map with color-coded cities superimposed on
> color-coded states, showing survey results from the Behavioral Risk Factor
> Surveillance System. You can see the sort of thing I'm trying to do at
For a start, have you looked at the output of seq(-0.032,0,0.0025)? I
don't think it does what yo think it does.
Hadley
On Wed, Sep 17, 2008 at 7:30 PM, Marie-Anne C Serve <[EMAIL PROTECTED]> wrote:
> I would like to create a color scale covering values from -0.032 to 0.0025
> with a neutral co
On Sun, Sep 14, 2008 at 11:48 AM, Roger Bivand <[EMAIL PROTECTED]> wrote:
> On Sun, 14 Sep 2008, hadley wickham wrote:
>
>> Hi All,
>>
>> I'm trying to figure out exactly what output unionSpatialPolygons
>> gives me - it looks like it merges my singleton po
Hi All,
I'm trying to figure out exactly what output unionSpatialPolygons
gives me - it looks like it merges my singleton polygons into
multi-polygons (see output of str below), but what I really want is
just a single singleton polygon, containing the boundary of the
unioned areas. How can I get
> The filled.contour() is a different kind of function, essentially doing
> almost everything in C, and passing nothing back. So I think the only
> alternative is to build polygons from the contourLines() output by
> intersecting with a bounding box, and then finding out which polygon
> boundaries
> > In the trellis panel functions, or in the direct plot/image/lines etc
> > functions, you plot in data coordinates. The main thing that the plot
> > and spplot methods in package sp control is the aspect ratio. How else
> > do data coordinates differ from geographical coordinates when it com
On Sun, Feb 24, 2008 at 12:46 AM, Don MacQueen <[EMAIL PROTECTED]> wrote:
> This question is basically off topic, since it isn't truly an R
> question, though it is certainly related to r-sig-geo. I ask here in
> the hopes that someone can suggest a direction for me to look.
>
> I have a what is
Hi all,
I was wondering if anyone knows how the default orientations are
calculated in the mapproj package. I need this for
my ggplot2 package because when you are drawing maps with multiple
layers of data you (obviously) have to calculate the orientation over
all data, not just the data points i
There's the alpha function in the ggplot2 package:
plot(1:90, 1:90, pch=16, cex=2, col="red")
points(1:90, 1:90, pch=16, cex=2, col=alpha(grey(90:1/90), 0.5))
Hadley
On 11/16/07, Ingo Holz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> is there an easier way to get a semi-transparent grey-palette?
>
> p
On 7/20/07, Thomas Szegvary <[EMAIL PROTECTED]> wrote:
> except for the R^2 symbol...I found that problem else where too, but have
> no solution yet.
Have a look at ?plotmath.
Hadley
___
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.
You can now use contourLines in the grDevices package included with R.
Hadley
On 5/31/07, Andrew Niccolai <[EMAIL PROTECTED]> wrote:
> I truly apologize, I just found the clines package. Thanks.
>
>
> Andrew Niccolai
> Doctoral Candidate
> Yale School of Forestry
>
>
26 matches
Mail list logo