Re: [R] [sm.density.compare] scale up y-axis and additional line type

2013-10-03 Thread Xianwen Chen
Hi Jim, Thanks a lot for your help! Kind regards, Xianwen On 10/02/2013 03:24 AM, Jim Lemon wrote: On 10/02/2013 04:43 AM, Xianwen Chen wrote: Thanks Jim, The picture width is adjusted. That was great help! I really appreciate it. Does lwd mean 'line width'? I'm not exactly sure how that

Re: [R] [sm.density.compare] scale up y-axis and additional line type

2013-10-01 Thread Jim Lemon
On 10/02/2013 04:43 AM, Xianwen Chen wrote: Thanks Jim, The picture width is adjusted. That was great help! I really appreciate it. Does lwd mean 'line width'? I'm not exactly sure how that will help. Can you please explain the intuition behind it? Yes, "lwd" refers to line width. The combinat

Re: [R] [sm.density.compare] scale up y-axis and additional line type

2013-10-01 Thread Xianwen Chen
Thanks Jim, The picture width is adjusted. That was great help! I really appreciate it. Does lwd mean 'line width'? I'm not exactly sure how that will help. Can you please explain the intuition behind it? Can I also ask another question? My graph is made from 7 plots from sm.density.compare(

Re: [R] [sm.density.compare] scale up y-axis and additional line type

2013-09-30 Thread Jim Lemon
On 10/01/2013 08:17 AM, Xianwen Chen wrote: Dear fellows, The two questions are on sm.density.compare(). I compare kernel density estimates of two arrays of data. I'd like to scale up y-axis so that I can show better the differences in y values. English is not my first language so I'll try to e

[R] [sm.density.compare] scale up y-axis and additional line type

2013-09-30 Thread Xianwen Chen
Dear fellows, The two questions are on sm.density.compare(). I compare kernel density estimates of two arrays of data. I'd like to scale up y-axis so that I can show better the differences in y values. English is not my first language so I'll try to explain it. I would like to stretch y-axis

Re: [R] sm.density.compare - a lot of curves

2012-01-03 Thread przemek
Dear Jorge, I appreciate your help. I didn't forget this arguments, I just didn't know it ;) Now I adjust my code and it works well. Thanks a lot! If I can have one more question: g <- rep(c(1, 2), each = 1000) what if the number of values is not equal? Przemek -- View this message in conte

Re: [R] sm.density.compare - a lot of curves

2012-01-02 Thread Jorge I Velez
Hi Przemek, Take a look at ?sm.density.compare : you forgot to include the "group" argument in your call. Try require(sm) rno1 = rnorm(1000) rno2 = rnorm(1000) g <- rep(c(1, 2), each = 1000) y <- c(rno1, rno2) sm.density.compare(y, g, model = 'equal') HTH, Jorge.- On Mon, Jan 2, 2012 at 7:00

[R] sm.density.compare - a lot of curves

2012-01-02 Thread przemek
Dear all, Let say I have a sets of numbers: rno1 = rnorm(1000) rno2 = rnorm(1000) If I write request as follow: sm.density.compare (rno, rno3, xfit=min(rno), max(rno2)) why I receive a lot of curves in my plot, while I have only two data sets? regards Przemek -- View this message in context:

[R] sm.density.compare, date on x axis?

2011-01-24 Thread Claudia Penaloza
Is it possible to generate a density plot comparing several (6 or 7) groups of data and have the x-axis in date format (e.g.: "%d%b", 10Mar)? When I try to input the data in date format I get an error saying "this function only allows 1-d data". Thank you, Claudia [[alternative HTML vers

[R] sm.density.compare

2009-05-04 Thread Claudia Penaloza
I've been using the sm.denstiy.compare function and would like to know some specifics: a) What kind of bootstrap sampling is used, with or without replacement? b) A p-value is returned after running the following script (for example): library(sm) y <- rnorm(100) g <- rep(1:2, rep(50,2)) sm.densit

Re: [R] sm.density.compare

2009-03-03 Thread Mark Difford
Hi James, >> Error in if (from == to) rep.int(from, length.out) else as.vector(c(from, >> : >> missing value where TRUE/FALSE needed ... >> ... The only difference with my data is that I have some missing values >> that show as NA This is precisely the problem. ## Show the error [message] y <

[R] sm.density.compare

2009-03-03 Thread James Lenihan
I am running the sm.density.compare function amd I am getting the following error:   my code is  > sm.density.compare(LBSTRESN,COHORT,xlab="Units = umol/L"subset = LBTEST=="Creatinine")   Error in if (from == to) rep.int(from, length.out) else as.vector(c(from,  :   missing value where TRUE/FALS