Re: [R] Scale

2018-05-20 Thread Bert Gunter
You can draw your own axes. Set las =1. See ?par plot(survfit(Y~addicts$clinic), fun="cloglog", las=1) Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic stri

Re: [R] Scale

2018-05-20 Thread Duncan Murdoch
On 20/05/2018 3:32 PM, Ed medicine via R-help wrote: I would like to get horizontal numbers on the both axes: X and Y. I got horizontal numbers only on the Y axis when adding las=2, How to obtain a horizontal orientation for number on scale also for the X axis (now they are vertical)? Here is my

[R] Scale

2018-05-20 Thread Ed medicine via R-help
I would like to get horizontal numbers on the both axes: X and Y. I got horizontal numbers only on the Y axis when adding las=2, How to obtain a horizontal orientation for number on scale also for the X axis (now they are vertical)? Here is my code: plot(survfit(Y~addicts$clinic), fun="cloglog", l

Re: [R] Scale and shape parameters of Gamma mixture distributions

2016-08-26 Thread Rolf Turner
On 25/08/16 23:28, Marine Regis wrote: Hello, I used the function "mix" (package "mixdist'') to fit Gamma mixture distributions. The function gives mu and sigma parameters (output below). How can I find the scale and shape parameters of the Gamma distributions ? Parameters: pimu s

[R] Scale and shape parameters of Gamma mixture distributions

2016-08-25 Thread Marine Regis
Hello, I used the function "mix" (package "mixdist'') to fit Gamma mixture distributions. The function gives mu and sigma parameters (output below). How can I find the scale and shape parameters of the Gamma distributions ? Parameters: pimu sigma 1 0.2089 185.7 285.4 2 0.7911 530.1

Re: [R] Scale y-labels based on a value with 'lattice'

2016-05-29 Thread K. Elo
Hi! Many thanks to Duncan and Jim for their quick replies. 27.05.2016, 01:08, Jim Lemon wrote: Hi Kimmo, par(mar=c(5,7,4,2)) dotchart(kedf$x) mtext(kedf$Group.2,side=2,at=1:6,line=0.5, las=2,cex=log(abs(kedf$Freq))+1) Jim This 'dotchart' solution worked fine and I got what I wanted :) Howev

Re: [R] Scale y-labels based on a value with 'lattice'

2016-05-26 Thread Duncan Mackay
alf Of K. Elo Sent: Friday, 27 May 2016 00:52 To: r-help@r-project.org Subject: [R] Scale y-labels based on a value with 'lattice' Dear R-helpers! I have a data frame storing data for word co-occurrences, average distances and co-occurence frequency: Group.1Group.2

Re: [R] Scale y-labels based on a value with 'lattice'

2016-05-26 Thread Jim Lemon
Hi Kimmo, I was unable to work out how to do this in lattice, but this might help: kedf<-read.table(text="Group.1Group.2 x Freq deutschland achtziger 2.001 deutschlandalt 1.254 deutschland anfang -2.001 deutschlandansehen 1.002 deutschland arbei

[R] Scale y-labels based on a value with 'lattice'

2016-05-26 Thread K. Elo
Dear R-helpers! I have a data frame storing data for word co-occurrences, average distances and co-occurence frequency: Group.1Group.2 x Freq 1 deutschland achtziger 2.001 2 deutschlandalt 1.254 3 deutschland anfang -2.001 4 deutschlandansehen 1.00

Re: [R] scale breaks

2013-08-31 Thread Shane Carey
I want to use it, but just show a slash on the yaxis rather than two horizontal lines. Thanks On Saturday, August 31, 2013, Jim Lemon wrote: > On 08/30/2013 11:53 PM, Shane Carey wrote: > >> Hi Jim et al, >> >> I want to remove the upper bounding box, >> I did this by >> #box() >> >> in the gap.p

Re: [R] scale breaks

2013-08-30 Thread Shane Carey
Hi Jim et al, I want to remove the upper bounding box, I did this by #box() in the gap.plot function. It still leaves me with two horizontal lines. I would like to remove them also, where are the created within the function? Thanks, this is great, exactly what I need. Cheers On Fri, Aug 30, 20

Re: [R] scale breaks

2013-08-30 Thread Shane Carey
It worked perfectly, your a star!!! Thanks On Fri, Aug 30, 2013 at 11:40 AM, Shane Carey wrote: > Oooff, Right, I will give it a go and see how I get on. > > Thanks > > > On Fri, Aug 30, 2013 at 11:17 AM, Jim Lemon wrote: > >> On 08/30/2013 07:57 PM, Shane Carey wrote: >> >>> This is what I p

Re: [R] scale breaks

2013-08-30 Thread Shane Carey
Oooff, Right, I will give it a go and see how I get on. Thanks On Fri, Aug 30, 2013 at 11:17 AM, Jim Lemon wrote: > On 08/30/2013 07:57 PM, Shane Carey wrote: > >> This is what I put in: >> gap.boxplot(DATA$Conductivity~**factor(DATA$UnitName_1),ylim=** >> c(LOWER_Y_Conductivity,UPPER_**Y_Cond

Re: [R] scale breaks

2013-08-30 Thread Jim Lemon
On 08/30/2013 07:57 PM, Shane Carey wrote: This is what I put in: gap.boxplot(DATA$Conductivity~factor(DATA$UnitName_1),ylim=c(LOWER_Y_Conductivity,UPPER_Y_Conductivity_int),gap=gap_Conductivity, col=colours,outwex=one,whisklty = "solid",whisklwd=lwth,outcol= "black", outpch=dtsym,

Re: [R] scale breaks

2013-08-30 Thread Shane Carey
This is what I put in: gap.boxplot(DATA$Conductivity~factor(DATA$UnitName_1),ylim=c(LOWER_Y_Conductivity,UPPER_Y_Conductivity_int),gap=gap_Conductivity, col=colours,outwex=one,whisklty = "solid",whisklwd=lwth,outcol= "black", outpch=dtsym, outcex=dtsize, range=1.5,xlab="",y

Re: [R] scale breaks

2013-08-30 Thread Berend Hasselman
On 30-08-2013, at 11:49, Shane Carey wrote: > Hi, > > xlab="", > ylab"", > You were told to use xlab="", ylab="" You seem to have omitted the = after ylab Berend > Would not work. > > Thanks > > > On Fri, Aug 30, 2013 at 9:37 AM, Shane Carey wrote: > >> Thanks >> >> >> On Fri, Aug

Re: [R] scale breaks

2013-08-30 Thread Shane Carey
Hi, xlab="", ylab"", Would not work. Thanks On Fri, Aug 30, 2013 at 9:37 AM, Shane Carey wrote: > Thanks > > > On Fri, Aug 30, 2013 at 1:49 AM, Jim Lemon wrote: > >> On 08/30/2013 01:28 AM, Shane Carey wrote: >> >>> Hello all, >>> >>> I have decided to go ahead with gap.boxplot. I am trying

Re: [R] scale breaks

2013-08-30 Thread Shane Carey
Thanks On Fri, Aug 30, 2013 at 1:49 AM, Jim Lemon wrote: > On 08/30/2013 01:28 AM, Shane Carey wrote: > >> Hello all, >> >> I have decided to go ahead with gap.boxplot. I am trying to suppress the >> axis labels, both x and y labels. I tried using axis.labels=NULL but it >> would not work. >> >

Re: [R] scale breaks

2013-08-29 Thread Jim Lemon
On 08/30/2013 01:28 AM, Shane Carey wrote: Hello all, I have decided to go ahead with gap.boxplot. I am trying to suppress the axis labels, both x and y labels. I tried using axis.labels=NULL but it would not work. Hi Shane, To suppress the axis labels, pass an empty string: gap.barplot(...,x

Re: [R] scale breaks

2013-08-29 Thread Shane Carey
"I would also like to display a y-axis value in the upper box" I got this part working now. On Thu, Aug 29, 2013 at 4:28 PM, Shane Carey wrote: > Hello all, > > I have decided to go ahead with gap.boxplot. I am trying to suppress the > axis labels, both x and y labels. I tried using axis.label

Re: [R] scale breaks

2013-08-29 Thread Shane Carey
Hello all, I have decided to go ahead with gap.boxplot. I am trying to suppress the axis labels, both x and y labels. I tried using axis.labels=NULL but it would not work. gap.boxplot(DATA$Conductivity~factor(DATA$UnitName_1),ylim=c(LOWER_Y_Conductivity,UPPER_Y_Conductivity_int),gap=gap_Conductiv

Re: [R] scale breaks

2013-08-29 Thread Shane Carey
Ok, thanks all :-) On Thu, Aug 29, 2013 at 2:39 AM, Jim Lemon wrote: > On 08/29/2013 02:52 AM, Shane Carey wrote: > >> Hi, >> >> Has anyone ever created scale breaks in R something like what is shown >> here >> in the section, >> Use a Scale Break >> >> http://www.r-bloggers.com/**graphing-high

Re: [R] scale breaks

2013-08-28 Thread Jim Lemon
On 08/29/2013 02:52 AM, Shane Carey wrote: Hi, Has anyone ever created scale breaks in R something like what is shown here in the section, Use a Scale Break http://www.r-bloggers.com/graphing-highly-skewed-data/ Thanks Hi Shane, As Sarah answered, axis.break in the plotrix package is a start

Re: [R] scale breaks

2013-08-28 Thread Rolf Turner
On 29/08/13 05:03, Sarah Goslee wrote: Yes. Using my rudimentary telepathic powers, I suppose that you also want to know how to do it, not just whether it has been done. In that case, perhaps you should look at axis.break() from the plotrix package. (In response to the question, from S

Re: [R] scale breaks

2013-08-28 Thread Sarah Goslee
On Wed, Aug 28, 2013 at 1:35 PM, Bert Gunter wrote: > Sarah et. al.: > > Heh heh. > > However .. my always fallible judgment says, don't do it. Axis scale breaks > invite misreading, Consider alternatives: > http://stats.stackexchange.com/questions/1764/what-are-alternatives-to-broken-axes Well,

Re: [R] scale breaks

2013-08-28 Thread Bert Gunter
Sarah et. al.: Heh heh. However .. my always fallible judgment says, don't do it. Axis scale breaks invite misreading, Consider alternatives: http://stats.stackexchange.com/questions/1764/what-are-alternatives-to-broken-axes Cheers, Bert On Wed, Aug 28, 2013 at 10:03 AM, Sarah Goslee wrote: >

Re: [R] scale breaks

2013-08-28 Thread Sarah Goslee
On Wed, Aug 28, 2013 at 12:52 PM, Shane Carey wrote: > Hi, > > Has anyone ever created scale breaks in R something like what is shown here > in the section, Use a Scale Break, > http://www.r-bloggers.com/graphing-highly-skewed-data/ Yes. Using my rudimentary telepathic powers, I suppose that yo

[R] scale breaks

2013-08-28 Thread Shane Carey
Hi, Has anyone ever created scale breaks in R something like what is shown here in the section, Use a Scale Break http://www.r-bloggers.com/graphing-highly-skewed-data/ Thanks -- Shane [[alternative HTML version deleted]] __ R-help@r-projec

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
could be a long night/week. Good luck. John Kane Kingston ON Canada -Original Message- From: mohan.radhakrish...@polarisft.com Sent: Tue, 27 Aug 2013 18:21:45 +0530 To: jrkrid...@inbox.com Subject: RE: [R] Scale of axis for two data sets Thanks. There is one more idea from Jim Lemon whic

Re: [R] Scale of axis for two data sets

2013-08-27 Thread mohan . radhakrishnan
released from this assignment :-) So I am gathering 'pmap' output and plotting Total size(Kbytes) and Resident Size(RSS) of the JVM. Mohan From: John Kane To: mohan.radhakrish...@polarisft.com Cc: r-help@r-project.org Date: 08/27/2013 06:11 PM Subject: RE: [R] Sca

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
olarisft.com > Subject: Re: [R] Scale of axis for two data sets > > On 08/27/2013 10:08 PM, Jim Lemon wrote: >> On 08/27/2013 10:01 PM, mohan.radhakrish...@polarisft.com wrote: >>> Hi, >>> Can't one y-axis be used ? Both 'Kbytes' and 'RSS' u

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
ssage- From: mohan.radhakrish...@polarisft.com Sent: Tue, 27 Aug 2013 17:31:18 +0530 To: jrkrid...@inbox.com Subject: RE: [R] Scale of axis for two data sets Hi,               Can't one y-axis be used ? Both 'Kbytes' and 'RSS' use the same unit. Thanks, Mohan From:      

Re: [R] Scale of axis for two data sets

2013-08-27 Thread Jim Lemon
On 08/27/2013 10:08 PM, Jim Lemon wrote: On 08/27/2013 10:01 PM, mohan.radhakrish...@polarisft.com wrote: Hi, Can't one y-axis be used ? Both 'Kbytes' and 'RSS' use the same unit. Hi Mohan, Yes, you can use a single y axis. What you probably want is something like this: ylim<-range(c(Kbytes,

Re: [R] Scale of axis for two data sets

2013-08-27 Thread Jim Lemon
On 08/27/2013 10:01 PM, mohan.radhakrish...@polarisft.com wrote: Hi, Can't one y-axis be used ? Both 'Kbytes' and 'RSS' use the same unit. Hi Mohan, Yes, you can use a single y axis. What you probably want is something like this: ylim<-range(c(Kbytes,RSS)) plot(rNo,Kbytes,col

Re: [R] Scale of axis for two data sets

2013-08-27 Thread mohan . radhakrishnan
Hi, Can't one y-axis be used ? Both 'Kbytes' and 'RSS' use the same unit. Thanks, Mohan From: John Kane To: mohan.radhakrish...@polarisft.com Cc: r-help@r-project.org Date: 08/27/2013 05:13 PM Subject:RE: [R] Scale of axis for two

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
have read about double-axis graphs is rather negative. However, I know they are standard in some disciplines. John Kane Kingston ON Canada -Original Message- From: mohan.radhakrish...@polarisft.com Sent: Tue, 27 Aug 2013 17:08:51 +0530 To: jrkrid...@inbox.com Subject: RE: [R] Scale of ax

Re: [R] Scale of axis for two data sets

2013-08-27 Thread mohan . radhakrishnan
: mohan.radhakrish...@polarisft.com, r-help@r-project.org Date: 08/27/2013 04:57 PM Subject:RE: [R] Scale of axis for two data sets I am misreading something here I think. Why are you graphing against a constant? John Kane Kingston ON Canada > -Original Message- > From: mohan.radh

Re: [R] Scale of axis for two data sets

2013-08-27 Thread John Kane
I am misreading something here I think. Why are you graphing against a constant? John Kane Kingston ON Canada > -Original Message- > From: mohan.radhakrish...@polarisft.com > Sent: Tue, 27 Aug 2013 13:28:48 +0530 > To: r-help@r-project.org > Subject: [R] Scale of axis fo

Re: [R] Scale of axis for two data sets

2013-08-27 Thread Jim Lemon
On 08/27/2013 05:58 PM, mohan.radhakrish...@polarisft.com wrote: Hi, Kbytes RSS rNo 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788

[R] Scale of axis for two data sets

2013-08-27 Thread mohan . radhakrishnan
Hi, Kbytes RSS rNo 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1450876 1433788 2689632 1460168 1443084 plot(data$rNo,data$RSS,pch=0,type="b",c

Re: [R] Scale package change comma defaults?

2013-06-03 Thread John Kane
:58 + > To: r-h...@stat.math.ethz.ch > Subject: Re: [R] Scale package change comma defaults? > > John Kane inbox.com> writes: > >> I was using the comma() funtion in the scales page and was >> wondering how to chage a the defaults. comm(1000) gives me 1,000 >

Re: [R] Scale package change comma defaults?

2013-06-02 Thread Ben Bolker
John Kane inbox.com> writes: > I was using the comma() funtion in the scales page and was > wondering how to chage a the defaults. comm(1000) gives me 1,000 > which is what I usually want but how would I change the output to > 1.000. Since the comma() function is just a wrapper for format():

[R] Scale package change comma defaults?

2013-06-02 Thread John Kane
I was using the comma() funtion in the scales page and was wondering how to chage a the defaults. comm(1000) gives me 1,000 which is what I usually want but how would I change the output to 1.000. I had thought that I could simply do comm(1000, big.mark = ".") but I am getting Error in form

[R] scale change

2013-05-20 Thread Preetam Pal
Hi all, I am sure this is simple, but being a beginner in R,I am finding it difficult to manage myself. I am running the following code to get a multiple line plot for two time series variables, x and y: plot(as.ts(cbind(x,y)), plot.type = "single", col = 1:2) I want to change the scales of both

[R] scale Problem in Survreg function

2012-12-20 Thread Lumar
Dear R-Community, I'm writting my diploma-thesis this days. Therefore I have to estimate a few coefficients with a Survreg function (library=Survival). My Problem is that the estimated coefficients doesn't make sense. *My Questions:* - What role plays the scale-Value for the coefficient-estimati

Re: [R] Scale parameter in Weibull distribution

2012-03-07 Thread David Winsemius
On Mar 6, 2012, at 6:19 PM, FU-WEN LIANG wrote: Thanks for your advise, David. I did read the help for survreg and using the followings to calculate. survreg's scale =1/(rweibull shape) survreg's intercept = log(rweibull scale) However, the scale in rweibull has been transformed by exp(

Re: [R] Scale parameter in Weibull distribution

2012-03-06 Thread FU-WEN LIANG
Thanks for your advise, David. I did read the help for survreg and using the followings to calculate. survreg's scale =1/(rweibull shape) survreg's intercept = log(rweibull scale) However, the scale in rweibull has been transformed by exp(betaX's). In my case, the baseline hazard for T is 0

Re: [R] Scale parameter in Weibull distribution

2012-03-06 Thread David Winsemius
On Mar 6, 2012, at 5:53 PM, FU-WEN LIANG wrote: Hi all, I'm trying to generate a Weibull distribution including four covariates in the model. Here is the code I used: T = rweibull(200, shape=1.3, scale=0.004*exp(-(-2.5*b1+2.5*b2+0.9*x1-1.3*x2)/1.3)) C = rweibull(n, shape=1.5, scale=0.008)

[R] Scale parameter in Weibull distribution

2012-03-06 Thread FU-WEN LIANG
Hi all, I'm trying to generate a Weibull distribution including four covariates in the model. Here is the code I used: T = rweibull(200, shape=1.3, scale=0.004*exp(-(-2.5*b1+2.5*b2+0.9*x1-1.3*x2)/1.3)) C = rweibull(n, shape=1.5, scale=0.008) #censoring time time = pmin(T,C) #observed time is m

Re: [R] Scale time series in a way that 90% of the data is in the -0.-9/ +0.9 range

2011-05-12 Thread Jerome Asselin
On Thu, 2011-05-12 at 06:40 -0700, Mr.Q wrote: > Hello, > > How can i scale my time series in a way that 90% of the data is in the > -0.-9/ +0.9 range? > I have two methods to suggest. One that uses the ranks to scale, hence is nonparametric and will work with any data distribution. The other u

[R] Scale time series in a way that 90% of the data is in the -0.-9/ +0.9 range

2011-05-12 Thread Mr.Q
Hello, How can i scale my time series in a way that 90% of the data is in the -0.-9/ +0.9 range? My approach is to first build a clean vector without those 10% far away from the mean require(outliers) y<-rep(c(1,1,1,1,1,9),10) yc<-y ycc<-length(y)*0.1 for(j in 1:ycc) { cat("Remove",j)

[R] Scale time series in a way that 90% of the data is in the -0.-9/ +0.9 range

2011-05-10 Thread Mr Copper
Hello, please excuse my ignorance as i am new to R and this might seem trivial to you How can i scale my time series in a way that 90% of the data is in the -0.-9/ +0.9 range? I think i first have to select the 90% closest to the mean and then calculate my scaling parameter on it, then scale the

Re: [R] Scale of 2nd y-axis

2011-01-20 Thread Moritz Grenke
t;at" values with not scaled "labels". Hope this helps, Moritz _____ Moritz Grenke http://www.360mix.de -Ursprüngliche Nachricht- Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von Andy Aldersley Gesendet: Donner

[R] Scale of 2nd y-axis

2011-01-20 Thread Andy Aldersley
Dear list, My query follows on from a question I posted a few days ago. I have the following 2 sets of data: wetMeans[1] 9.904762[2] 6.344828[3] 6.346154[4] 6.855769[5] 9.074324[6] 9.953988[7] 13.482966[8] 14.546053[9] 10.841584[10] 9.752033[11] 6.739336[12] 8.955056burnMeans[1] 0.06214286[2] 0

Re: [R] scale caption on levelplot

2010-12-04 Thread Peter Ehlers
On 2010-12-04 21:29, Andrew Collier wrote: hi peter and david, thanks for the excellent suggestions. here is something like what i am finally using (those fancy fonts were really tempting, but i chose something a little more mundane!): library(lattice) x<- sort(rnorm(100,50,10)) y<- sort(runif

Re: [R] scale caption on levelplot

2010-12-04 Thread Andrew Collier
hi peter and david, thanks for the excellent suggestions. here is something like what i am finally using (those fancy fonts were really tempting, but i chose something a little more mundane!): library(lattice) x <- sort(rnorm(100,50,10)) y <- sort(runif(100,0,20)) d <- expand.grid(x=x, y=y) d$z

Re: [R] scale caption on levelplot

2010-12-04 Thread Peter Ehlers
Andrew, see below On 2010-12-04 08:25, David Winsemius wrote: On Dec 4, 2010, at 8:25 AM, Andrew Collier wrote: hi, i am trying to figure out how to put a caption on the colour scale of a levelplot. there does not seem to be an option for this in levelplot(). Agreed. I could not find one i

Re: [R] scale caption on levelplot

2010-12-04 Thread David Winsemius
On Dec 4, 2010, at 8:25 AM, Andrew Collier wrote: hi, i am trying to figure out how to put a caption on the colour scale of a levelplot. there does not seem to be an option for this in levelplot(). Agreed. I could not find one in the levelplot help page or in the chapter of Lattice on

[R] scale caption on levelplot

2010-12-04 Thread Andrew Collier
hi, i am trying to figure out how to put a caption on the colour scale of a levelplot. there does not seem to be an option for this in levelplot(). i tried using mtext() but as soon as you put the text far out enough on the right of the plot, it goes beyond the plot boundary. so i tried to extend

Re: [R] scale,centre,and get more interactions

2010-10-22 Thread Ben Bolker
Baris Demiral googlemail.com> writes: > > Hi folks, > > I am new to lme in R, and I have a question regarding to the effect of scale > function on the lme. When I use the function to scale and centre the levels > of the fixed effects (e.g., X and Y; both have two levels) and write them to > new

[R] scale,centre,and get more interactions

2010-10-22 Thread Baris Demiral
Hi folks, I am new to lme in R, and I have a question regarding to the effect of scale function on the lme. When I use the function to scale and centre the levels of the fixed effects (e.g., X and Y; both have two levels) and write them to new columns: ex: dat$cX<-scale(as.numeric(dat$X),center =

Re: [R] scale or not to scale that is the question - prcomp

2009-08-19 Thread Petr PIKAL
OIS Thank you both for pointing me to it. I did not notice this as the unscaled position of points was quite clear and strightforward according to my knowledge of data. The scaled plot is slightly more distorted and the relationships are not so obvious. Thank you both Petr Pikal petr.pi...@pr

Re: [R] scale or not to scale that is the question - prcomp

2009-08-19 Thread Kevin Wright
If you mentally rotate the second biplot by 90 degrees, the plots are not so different. This just indicates that the 2nd and 3rd principal components have switched roles. Kevin Wright On Wed, Aug 19, 2009 at 10:09 AM, Petr PIKAL wrote: > Ok > > Thank you for your time. > > Best regards > Petr

Re: [R] scale or not to scale that is the question - prcomp

2009-08-19 Thread Albyn Jones
scaling changes the metric, ie which things are close to each other. there is no reason to expect the picture to look the same when you change the metric. On the other hand, your two pictures don't look so different to me. It appears that the scaled plot is similar to the unscaled plot, with the

Re: [R] scale or not to scale that is the question - prcomp

2009-08-19 Thread Petr PIKAL
Ok Thank you for your time. Best regards Petr Pikal Duncan Murdoch napsal dne 19.08.2009 16:29:07: > On 8/19/2009 10:14 AM, Petr PIKAL wrote: > > Duncan Murdoch napsal dne 19.08.2009 15:25:00: > > > >> On 19/08/2009 9:02 AM, Petr PIKAL wrote: > >> > Thank you > >> > > >> > Duncan Murdoch n

Re: [R] scale or not to scale that is the question - prcomp

2009-08-19 Thread Duncan Murdoch
On 8/19/2009 10:14 AM, Petr PIKAL wrote: Duncan Murdoch napsal dne 19.08.2009 15:25:00: On 19/08/2009 9:02 AM, Petr PIKAL wrote: > Thank you > > Duncan Murdoch napsal dne 19.08.2009 14:49:52: > >> On 19/08/2009 8:31 AM, Petr PIKAL wrote: >>> Dear all >>> > > > >> I would say the answer

Re: [R] scale or not to scale that is the question - prcomp

2009-08-19 Thread Petr PIKAL
Duncan Murdoch napsal dne 19.08.2009 15:25:00: > On 19/08/2009 9:02 AM, Petr PIKAL wrote: > > Thank you > > > > Duncan Murdoch napsal dne 19.08.2009 14:49:52: > > > >> On 19/08/2009 8:31 AM, Petr PIKAL wrote: > >>> Dear all > >>> > > > > > > > >> I would say the answer depends on the meanin

Re: [R] scale or not to scale that is the question - prcomp

2009-08-19 Thread Duncan Murdoch
On 19/08/2009 9:02 AM, Petr PIKAL wrote: Thank you Duncan Murdoch napsal dne 19.08.2009 14:49:52: On 19/08/2009 8:31 AM, Petr PIKAL wrote: Dear all I would say the answer depends on the meaning of the variables. In the unusual case that they are measured in dimensionless units, it mig

Re: [R] scale or not to scale that is the question - prcomp

2009-08-19 Thread Petr PIKAL
Thank you Duncan Murdoch napsal dne 19.08.2009 14:49:52: > On 19/08/2009 8:31 AM, Petr PIKAL wrote: > > Dear all > > > > I would say the answer depends on the meaning of the variables. In the > unusual case that they are measured in dimensionless units, it might > make sense not to scale

Re: [R] scale or not to scale that is the question - prcomp

2009-08-19 Thread Duncan Murdoch
On 19/08/2009 8:31 AM, Petr PIKAL wrote: Dear all here is my data called "rglp" structure(list(vzorek = structure(1:17, .Label = c("179/1/1", "179/2/1", "180/1", "181/1", "182/1", "183/1", "184/1", "185/1", "186/1", "187/1", "188/1", "189/1", "190/1", "191/1", "192/1", "R310", "R610L"), clas

[R] scale or not to scale that is the question - prcomp

2009-08-19 Thread Petr PIKAL
Dear all here is my data called "rglp" structure(list(vzorek = structure(1:17, .Label = c("179/1/1", "179/2/1", "180/1", "181/1", "182/1", "183/1", "184/1", "185/1", "186/1", "187/1", "188/1", "189/1", "190/1", "191/1", "192/1", "R310", "R610L"), class = "factor"), iep = c(7.51, 7.79, 5.14, 6

Re: [R] Scale set of 0 values returns NAN??

2009-08-04 Thread Noah Silverman
Noah Silverman Sent: Monday, August 03, 2009 12:26 AM To: r help Subject: [R] Scale set of 0 values returns NAN?? [snip] Using R is forcing me to take a much deeper look at my data and how my experiments are constructed. (That's a very "Good Thing") I nominate the above snippet f

Re: [R] Scale set of 0 values returns NAN??

2009-08-04 Thread Rolf Turner
On 5/08/2009, at 11:10 AM, Greg Snow wrote: -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Noah Silverman Sent: Monday, August 03, 2009 12:26 AM To: r help Subject: [R] Scale set of 0 values returns NAN?? [snip] Using R

Re: [R] Scale set of 0 values returns NAN??

2009-08-04 Thread Greg Snow
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Noah Silverman > Sent: Monday, August 03, 2009 12:26 AM > To: r help > Subject: [R] Scale set of 0 values returns NAN?? [snip] > Using R is forcing me &g

Re: [R] Scale set of 0 values returns NAN??

2009-08-03 Thread ONKELINX, Thierry
ta. ~ John Tukey -Oorspronkelijk bericht- Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens Noah Silverman Verzonden: maandag 3 augustus 2009 8:26 Aan: r help Onderwerp: [R] Scale set of 0 values returns NAN?? Hi, More questions in my ongoing quest to conve

[R] Scale set of 0 values returns NAN??

2009-08-02 Thread Noah Silverman
Hi, More questions in my ongoing quest to convert from RapidMiner to R. One thing has become VERY CLEAR: None of the issues I'm asking about here are addressed in RapidMiner. How it handles misisng values, scaling, etc. is hidden within the "black box". Using R is forcing me to take a much

Re: [R] scale subsets of grouped data in data frame

2009-07-31 Thread Steve Lianoglou
Hi, On Jul 31, 2009, at 7:17 PM, Noah Silverman wrote: Hello, I'm trying to duplicate what's an easy process in RapidMiner. In RM, we can simply use two operators: subgroup iteration attribute value selection (Can use a regex for the attrribute name.) I can do this in R with a lot

[R] scale subsets of grouped data in data frame

2009-07-31 Thread Noah Silverman
Hello, I'm trying to duplicate what's an easy process in RapidMiner. In RM, we can simply use two operators: subgroup iteration attribute value selection (Can use a regex for the attrribute name.) I can do this in R with a lot of code and manual steps. It would be really nice to find

Re: [R] scale subset of data

2009-07-31 Thread Noah Silverman
That works perfectly. Thanks! -N On 7/31/09 2:04 PM, Steve Lianoglou wrote: > Hi, > > On Jul 31, 2009, at 4:13 PM, Noah Silverman wrote: > >> Hi, >> >> This should be an easy one, but I have some trouble formatting the data >> right >> >> I'm trying to replace the column of a subset of a datafra

Re: [R] scale subset of data

2009-07-31 Thread Steve Lianoglou
Hi, On Jul 31, 2009, at 4:13 PM, Noah Silverman wrote: Hi, This should be an easy one, but I have some trouble formatting the data right I'm trying to replace the column of a subset of a dataframe with the scaled data for that column of the subset subset(rawdata, code== "foo", select = a)

[R] scale subset of data

2009-07-31 Thread Noah Silverman
Hi, This should be an easy one, but I have some trouble formatting the data right I'm trying to replace the column of a subset of a dataframe with the scaled data for that column of the subset subset(rawdata, code== "foo", select = a) <- scale( subset(rawdata, code== "foo", select = a) ) It

Re: [R] Scale function

2008-01-29 Thread David Winsemius
pellegrini <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > There is something that I do not get with scale function. > > Say that I have a vector v <- c(1,2,3,4,5,6), > > scale(v,center=TRUE,scale=TRUE) gives a new vector with 0 as mean > and 1 as standard deviation. > > but, > > scale

[R] Scale function

2008-01-29 Thread pellegrini
Hello everybody, There is something that I do not get with scale function. Say that I have a vector v <- c(1,2,3,4,5,6), scale(v,center=TRUE,scale=TRUE) gives a new vector with 0 as mean and 1 as standard deviation. but, scale(v, center=FALSE,scale=TRUE) gives a new vector with a standard d

[R] scale estimation for Gamma distribution

2007-12-19 Thread lubaroz
Hey, I make a regression for Gamma distribution with log link, in R and in SAS. In R, the dispersion is estimated by \phi=Deviance/(#_of_observations), In SAS, there are two options: \phi=Deviance/(#_of_observations-#_of_params) or \phi=Pearson/(#_of_observations-#_of_params). I understand that