Re: [R] If Command in Plot

2012-09-22 Thread Bhupendrasinh Thakre
Thanks Arun. Have two way to solve the question now. Bhupendrasinh Thakre Sent from my Mac On Sep 22, 2012, at 11:52 PM, arun wrote: > HI, > I guess you want to plot with a subset of your data z1. > z1[with(z1,e>0),] > plot(y~x,data=z1[with(z1,e>0),]) > A.K. > > > > > > > - Origin

Re: [R] Creating multiple maps so points don't overlap

2012-09-22 Thread Bhupendrasinh Thakre
Not sure whether you are asking for individual map in form like interactive or pdf. However packages like rgdal, plotGoogleMaps might be helpful. It will be good if you can provide some data with the question. Best, Bhupendrasinh Thakre On Sep 22, 2012, at 5:38 PM, Tyler Petroelje wrote:

Re: [R] If Command in Plot

2012-09-22 Thread Bhupendrasinh Thakre
Thanks Dr. Heiberger.. that solves my problem. Bhupendrasinh Thakre On Sep 22, 2012, at 10:58 PM, "Richard M. Heiberger" wrote: > Think matrix, not scalar. > > > tmp <- structure(list(x = c(1, 1, 1, 2, 2, 2, 3, 3, 3), y = c(1, 2, > + 3, 1, 2, 3, 1, 2, 3), e = c(0, -1, -2, 1, 0, -1, 2, 1,

Re: [R] If Command in Plot

2012-09-22 Thread Richard M. Heiberger
Think matrix, not scalar. > tmp <- structure(list(x = c(1, 1, 1, 2, 2, 2, 3, 3, 3), y = c(1, 2, + 3, 1, 2, 3, 1, 2, 3), e = c(0, -1, -2, 1, 0, -1, 2, 1, 0)), row.names = c(NA, + -9L), .Names = c("x", "y", "e"), class = "data.frame") > > tmp x y e 1 1 1 0 2 1 2 -1 3 1 3 -2 4 2 1 1 5 2 2 0 6 2

[R] If Command in Plot

2012-09-22 Thread Bhupendrasinh Thakre
Hi Team, I am trying to very simple plot with command plot. Question : I am trying to plot (x,y) based on the value of Column e. If column e value is greater than 0 then plot(x,y) otherwise do not plot it. Data : structure(list(x = c(1, 1, 1, 2, 2, 2, 3, 3, 3), y = c(1, 2, 3, 1, 2, 3, 1, 2, 3)

[R] Creating multiple maps so points don't overlap

2012-09-22 Thread Tyler Petroelje
Hello, I am working within package 'maptools' to plot a number of collared animal locations by reading in shapefiles of locations, roads, hydrology, and landownership as imported layers. The trouble I have is that some individual locations are overlapping and I would like to "zoom" into or create

[R] timeIsInterval function not found

2012-09-22 Thread bobbe1971
hello i'm trying the script of gstat course of munich "Spatial and spacetime classes in R " in http://geostat-course.org/Topic_Bivand_2012 the code is follow ... but a in timeIsInterval(dts) the script failed the message is "timeIsInterval function not found" i'm updated R and package spacetime

Re: [R] efficient overlapping average curve on original curves

2012-09-22 Thread eliza botto
Dear Arun, Rui and David, thankyou very much. i learnt alot from your replies. eliza botto > Date: Fri, 21 Sep 2012 18:58:18 -0700 > From: smartpink...@yahoo.com > To: ruipbarra...@sapo.pt > CC: r-help@r-project.org > Subject: Re: [R] efficient overlapping average curve on original curves > > H

Re: [R] Decision Tree: Am I Missing Anything?

2012-09-22 Thread Max Kuhn
Vik, On Fri, Sep 21, 2012 at 12:42 PM, Vik Rubenfeld wrote: > Max, I installed C50. I have a question about the syntax. Per the C50 manual: > > ## Default S3 method: > C5.0(x, y, trials = 1, rules= FALSE, > weights = NULL, > control = C5.0Control(), > costs = NULL, ...) > > ## S3 method for class

Re: [R] Decision Tree: Am I Missing Anything?

2012-09-22 Thread Bhupendrasinh Thakre
My pleasure. As a part of R team we are always here to help each other. Best Regards, Bhupendrasinh Thakre Sent from my iPhone On Sep 22, 2012, at 1:46 PM, Vik Rubenfeld wrote: > Bhupendrashinh, thanks again for telling me about RWeka. That made a big > difference in a job I was working on

Re: [R] Decision Tree: Am I Missing Anything?

2012-09-22 Thread Vik Rubenfeld
Bhupendrashinh, thanks again for telling me about RWeka. That made a big difference in a job I was working on this week. Have a great weekend. -Vik __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] How to determine R version?

2012-09-22 Thread Marius Hofert
Thanks, Berend, that works. Cheers, Marius Berend Hasselman writes: > On 22-09-2012, at 19:32, Marius Hofert wrote: > >> Hi, >> >> What's the best approach to determine if a user uses an R version before >> 2.15.1 >> patched? >> I know that the sessionInfo() command provides details, but I'

Re: [R] How to determine R version?

2012-09-22 Thread Berend Hasselman
On 22-09-2012, at 19:32, Marius Hofert wrote: > Hi, > > What's the best approach to determine if a user uses an R version before > 2.15.1 > patched? > I know that the sessionInfo() command provides details, but I'm not sure how > the output of sessionInfo() is best used to determine R versions.

[R] How to determine R version?

2012-09-22 Thread Marius Hofert
Hi, What's the best approach to determine if a user uses an R version before 2.15.1 patched? I know that the sessionInfo() command provides details, but I'm not sure how the output of sessionInfo() is best used to determine R versions. This seems to work, but a) there is certainly a better way and

Re: [R] Change boxplot color

2012-09-22 Thread Simone Gabbriellini
Thanks! I missed that argument... :) 2012/9/22 Bert Gunter : > ?boxplot > ... and note the "border" argument > > -- Bert > > On Fri, Sep 21, 2012 at 6:57 PM, Simone Gabbriellini > wrote: >> Hello, >> >> I would like to change the color of the borders of my boxplot. Using col= I >> am able only t

Re: [R] translating SAS proc mixed into R lme()

2012-09-22 Thread Ben Bolker
Zoya Pyrkina gmail.com> writes: > I need help with translating these SAS codes into R with lme()? I have a > longitudinal data with repeated measures (measurements are equally spaced > in time, subjects are measured several times a year). I need to allow slope > and intercept vary. > > SAS code

Re: [R] __FILE__ object in R

2012-09-22 Thread Duncan Murdoch
On 12-09-21 3:27 PM, Peter Waltman wrote: Hi - I'm curious if there is a way to get access to the location of the calling script within R. I found one way of accessing it from this thread, https://stat.ethz.ch/pipermail/r-devel/2008-April/048914.html, which recommends using either: parent.fram

Re: [R] New Submission to CRAN note

2012-09-22 Thread Hadley Wickham
After uploading your package via ftp, in your email to c...@r-project.org you need to state that you agree to the CRAN repository policy (http://cran.r-project.org/web/packages/policies.html) Hadley On Sat, Sep 22, 2012 at 1:02 AM, Christopher Desjardins wrote: > Hi, > I want to submit a package