Re: [R] ggmap (or ggplot2 with mapping question)

2014-12-26 Thread David Winsemius
> On Dec 26, 2014, at 4:51 PM, Roy Mendelssohn - NOAA Federal > wrote: > > Thanks. The map specs are stored in myMap, it can be displayed just by > typing at the prompt: > > myMap > No. As I said before, all I see when I enter myMap at the console prompt is a set of RGB values displayed,

Re: [R] ANOVA test

2014-12-26 Thread Richard M. Heiberger
Kristi, The easiest way to do what you are looking for is the aovSufficient function in the HH package. ## install.packages("HH") ## if you don't have it yet library(HH) B.aov <- aovSufficient(mean ~ site, data=B, sd=B$SE, weights=c(3,3,3,3)) summary(B.aov) You must have the sample size for each

Re: [R] ggmap (or ggplot2 with mapping question)

2014-12-26 Thread Roy Mendelssohn - NOAA Federal
Just as a followup, for the archives: geom_rect does work. The aes for geom_rect requires xmax, xmin, ymax, ymin, - which are the limits of the bounding box. So: > ggmap(myMap) + > geom_rect(aes(xmin=-130,xmax=-125,ymin=30,ymax=35),colour="white",fill="red”) should work. geom_polygon will

Re: [R] ggmap (or ggplot2 with mapping question)

2014-12-26 Thread Roy Mendelssohn - NOAA Federal
Thanks. The map specs are stored in myMap, it can be displayed just by typing at the prompt: myMap Thanks for the geom.rect suggestion. I will look at that. -Roy On Dec 26, 2014, at 4:16 PM, David Winsemius wrote: > >> On Dec 26, 2014, at 3:26 PM, Roy Mendelssohn - NOAA Federal >> wrot

Re: [R] ggmap (or ggplot2 with mapping question)

2014-12-26 Thread David Winsemius
> On Dec 26, 2014, at 3:26 PM, Roy Mendelssohn - NOAA Federal > wrote: > > HI All: > > Okay I am feeling particular brain dead today. i have the following map > created so far using ggmap: > >> library(ggmap) >> myLocation <- c(-178, -28, -72, 48) >> myMap <- get_map(location=myLocation, so

[R] ggmap (or ggplot2 with mapping question)

2014-12-26 Thread Roy Mendelssohn - NOAA Federal
HI All: Okay I am feeling particular brain dead today. i have the following map created so far using ggmap: > library(ggmap) > myLocation <- c(-178, -28, -72, 48) > myMap <- get_map(location=myLocation, source="google", maptype="satellite", > crop=FALSE) > I want to color in some lat-lon 5 d

Re: [R] Selecting values based on two criteria

2014-12-26 Thread Boris Steipe
Try this: d1 <- c(135631,136950,137952,138787,139623,142231,143067,144762, 145601,146441) d2 <- c(135882,136954,137956,138792,139630,140569,141398,142237, 143078,143907,144771,145611,146446,147285,148128) len <- length(d1) # concatenate the two vectors mrg <- c(d1,d2) # order the

[R] Saving only few columns to database - RODBC doesnt work

2014-12-26 Thread Prabhat Dalmia
Hi, I want to save only few columns to a table in database from the data.frame in R. My table has more columns than there are columns in my data.frame object, so I want that all the columns which are not specified should insert as nulls. I already have data in this table, and I would like to ap

[R] Selecting values based on two criteria

2014-12-26 Thread Morway, Eric
I'm in need of help selecting from d2 those values that come after a value in d1. For example, d2[1] is both greater than d1[1] and is the value that is closest to d2[1]. Similarly, d2[2] is both greater than d1[2] and is the next "highest" number in d2. Every value in d1 has a corresponding val

Re: [R] Unable to install ggplot2; using R 3.1.2 and RStudio 0.98.1091 in Linux Mint 17.1

2014-12-26 Thread rewyllys
@Sarah Goslee, Many thanks for your excellent help. It's a measure of my inexperience with R (and with compiling in Linux) that I failed to recognize the significance of the g++ error message, and that I was previously unaware that g++ is a (the?) GNU compiler for C++. After adding g++ to my des

Re: [R] ANOVA test

2014-12-26 Thread peter dalgaard
You could at least say that no, that is patently wrong! There are ways to reconstruct an ANOVA from means, sd, and group sizes, but this isn't it. In fact, the group sizes are not even used in the code. I agree about the need for a statistical expert. Fundamental misunderstandings seem to be pr

Re: [R] ANOVA test

2014-12-26 Thread Bert Gunter
This is a statistical question primarily and, as such, is off topic here. Either consult a local statistical expert or post to a statistical site like stats.stackexchange.com . Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is n

[R] ANOVA test

2014-12-26 Thread Kristi Glover
Hi R user, I am wondering whether I can perform a simple ANOVA analysis in the data in which I  have mean + SE (+- Standard Error) for several groups.  For this one,  I calculated upper and lower confidence interval and made three classes for each group (mean, upper and lower values). After that,

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-26 Thread Duncan Murdoch
On 25/12/2014 11:30 PM, Mike Miller wrote: > On Thu, 25 Dec 2014, Bert Gunter wrote: > >> You persist in failing to read the docs! > > "the docs" -- do those exclude those I have been quoting and linking to? > >> Moreover, neither Hadley Wickham, nor anyone else, is the authoritative >> source