Re: [R-sig-Geo] problem with Expression in a Plot

2010-11-25 Thread Dennis Murphy
Hi: Try plot(1, 1, ylab = expression(paste("RMSE[",m^3,"/ha]", sep = ''))) HTH, Dennis On Thu, Nov 25, 2010 at 7:21 AM, gianni lavaredo wrote: > Dear researchers, > > I spent several times to resolve this problem. Sorry I know is easy. > > in a plot a need to write RMSE [m3/ha] > > i am using b

Re: [R-sig-Geo] Inverting the scale in heat.colors

2010-09-12 Thread Dennis Murphy
plot(1:10,1,col= colorRampPalette(c("blue", "red"))(10) + ) # needed to add trailing paren Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ plot(1:10,rep(1,10),col= colorRampPalette(c("blue", "red"))(10))# works Dennis On Sun, Sep 12, 2010 at 6:25 AM, caspar h

Re: [R-sig-Geo] Mapping multiple attributes at once

2010-08-24 Thread Dennis Murphy
Hi: A couple of things: (1) It's coord_equal(), not coord-equal() in ggplot2. (2) For those who want to use Google Maps, I'll just mention that there is an RgoogleMaps package with a nice vignette on CRAN. HTH, Dennis On Tue, Aug 24, 2010 at 3:17 PM, Pierre Roudier wrote: > Hello Thiago, > > F

Re: [R-sig-Geo] suggestion to sum value inside a row in a data.frame

2010-04-08 Thread Dennis Murphy
> p <- + data.frame(ID=c(1,2,3,4,5,6,1,2,3,4,6),x=c(10,10,10,10,10,10,10,10,10,10,10)) > with(p, aggregate(x, list(ID = ID), FUN = sum)) ID x 1 1 20 2 2 20 3 3 20 4 4 20 5 5 10 6 6 20 HTH, Dennis On Thu, Apr 8, 2010 at 11:39 AM, gianni lavaredo wrote: > Dear Reseachers, > > I need a su