Re: [R] x labels out of Quartz canvas

2008-06-16 Thread Prof Brian Ripley
You do this by adjusting the margin sizes. Can I suggest you read 'An Introduction to R', which has a section on the layout of graphics (perhaps the only area in which it is comprehensive). On Mon, 16 Jun 2008, MeMooMeM wrote: Hi R world, I am such a newbie, with only 4-5 days of R experie

[R] some r code for linear mixed model

2008-06-16 Thread Manli Yan
Hello everyone: I have some quesions about the R code for linear mixed model,hope some one can give me some hints,thanks a lot~ Say: we have A B C three factors (i)A is fixed ,B and C are random,and B is nested in C,so the R code for this case would be: case1<-lme(y~A+B+C+..,rando

[R] Fitting a System of Difference Equations

2008-06-16 Thread Mark Orr
Hi R friends, I’m interested in fitting data to the following system of difference equations: Change in M = k*(1-M.prev)*(1-F.prev) + R*(1-M.prev)*F.pref Change in F = k*(1-F.prev)*(1-M.prev) + S*(1-F.prev)*M.pref Parameters: k, R, S, are transition rates Variables: M = Proportion of Males

Re: [R] Working with LiDAR .las files

2008-06-16 Thread Roger Bivand
Etienne Bellemare Racine gmail.com> writes: > > Hi, > > I am working with airborne LiDAR data and R. Do you know of any package > or project designed to achieve that goal ? Largely, if you are using R > and .las files (or lidar data), I would like to hear about your work > flow. Otherwise, i

Re: [R] How to output glm summary to csv file

2008-06-16 Thread Charles C. Berry
On Tue, 17 Jun 2008, Chua Siang Li wrote: Hello there. I am new to R. I want to output the coefficients and their significance value (Pr(>|z|) into a csv file. I managed to do it for the "coefficients" but not their significances. Pls help. Thanks. mylogit<- glm(response~pric

[R] Quickly reading data into the Matrix packages sparse formats

2008-06-16 Thread Paul Bailey
I have data set that I wish to solve with the Matrix package's sparse matrix functionality. The speed improvements that it has achieved are amazing, with my dense matrix solutions never taking really long enough to time in what I've been able to time so far. However, before I can solve my f

[R] How to output glm summary to csv file

2008-06-16 Thread Chua Siang Li
Hello there. I am new to R. I want to output the coefficients and their significance value (Pr(>|z|) into a csv file. I managed to do it for the "coefficients" but not their significances. Pls help. Thanks. mylogit<- glm(response~price, family=binomial(link="logit"),

[R] Insert raster image into an R graphic

2008-06-16 Thread Tudor Bodea
Dear useRs: Is there a way to include a raster image (e.g., .gif, .jpg, .bmp) representing a company logo, a school logo, etc. into an R graphic? For example, it would be nice to be able to include the logo of the school into the charts that a student produces for her dissertation. Similarly, whil

Re: [R] Accessing Max/Min Value of Density Function

2008-06-16 Thread Moshe Olshansky
Try max(mydensity$x), max(mydensity$y), quantile(mydensity$x), etc. See ?density --- On Tue, 17/6/08, Edward Wijaya <[EMAIL PROTECTED]> wrote: > From: Edward Wijaya <[EMAIL PROTECTED]> > Subject: [R] Accessing Max/Min Value of Density Function > To: r-help@r-project.org > Received: Tuesday, 17

Re: [R] Accessing Max/Min Value of Density Function

2008-06-16 Thread hadley wickham
>> mydensity <- density(x) >> print(mydensity) > > x y > Min. : -92.14 Min. :0.000e+00 > 1st Qu.: 356.66 1st Qu.:5.530e-09 > Median : 805.45 Median :4.681e-05 > Mean : 805.45 Mean :5.564e-04 > 3rd Qu.:1254.24 3rd Qu.:3.370e-04 > Max. :1703.04 Max.

[R] Accessing Max/Min Value of Density Function

2008-06-16 Thread Edward Wijaya
Dear all, Currently I have the following output > mydensity <- density(x) > print(mydensity) x y Min. : -92.14 Min. :0.000e+00 1st Qu.: 356.66 1st Qu.:5.530e-09 Median : 805.45 Median :4.681e-05 Mean : 805.45 Mean :5.564e-04 3rd Qu.:1254.24 3rd Qu.:3

Re: [R] Lattice: Superpose bwplot on dotplot [Newbie Question]

2008-06-16 Thread Charilaos Skiadas
On Jun 16, 2008, at 12:13 PM, Lord Yo wrote: Hello everyone I have dataset containing a monetary value (ABS) and two factors (Fct, Group). I am able to create useful using: bwplot(ABS~Group|Fct) and dotplot(ABS~Group|Fct) Question: What do I have to do to overlay the dotplot with the bwpl

Re: [R] in axis() suppressing axis line but keeping tick marks

2008-06-16 Thread Gabor Grothendieck
You could try overwriting the axis with a white axis line so it blends into the background. plot(1:10, axes = FALSE) axis(1) axis(1, col = "white", tcl = 0) On Mon, Jun 16, 2008 at 2:52 PM, Andrew Yee <[EMAIL PROTECTED]> wrote: > I've been trying to figure out a parameter that will let you separ

[R] Resizing Stacked Figures

2008-06-16 Thread Gundala Viswanath
Hi, I have two figures where I stacked together as one PNG. Top -> scatter plot Bottom -> density plot. However the density curve on the bottom was cut-off on its tip. Is there a way I can resize the figure? So that it can show proportional and complete plots? The code I have is the followin

Re: [R] alternative to matching/merge?

2008-06-16 Thread jim holtman
Is this what you tried: > x <- data.frame(a=1:10, b=1:10) > x <- data.frame(a=1:3, b=1:3) > do.call(rbind, list(x,x,x,x,x)) a b 1 1 1 2 2 2 3 3 3 4 1 1 5 2 2 6 3 3 7 1 1 8 2 2 9 3 3 10 1 1 11 2 2 12 3 3 13 1 1 14 2 2 15 3 3 > On Mon, Jun 16, 2008 at 7:36 PM, Lana Schaffer <[EMAIL PRO

[R] Reading OpenOffice Calc spreadsheet into R

2008-06-16 Thread Farrel Buchinsky
I am in awe of the project you developed but wish to do something simpler. I have recently decided to give up on Microsoft Office and wish to use OpenOffice exclusively. In the past I have used the RODBC package to read data from excel files. Do you know how to read data directly from OpenOffice ca

[R] Inserting a jpeg into an existing widget

2008-06-16 Thread Daniel Zamykal
Does anyone know how to insert a jpeg image into a widget. This is a portion of the code I have used to create the widget. I would like to insert an image in the bottom corner. Cheers tt<-tktoplevel() fontHeading2 <- tkfont.create(family="arial",size=16, slant="italic") fontHeading3 <- tkfont

Re: [R] sizing non-vector point shapes in ggplot2

2008-06-16 Thread Paul Murrell
Hi hadley wickham wrote: > On Mon, Jun 16, 2008 at 7:52 AM, mfrumin <[EMAIL PROTECTED]> wrote: >> Dear all, >> >> With normal plotting, one can size a set of points in a plot using a vector >> argument to cex in the points() function. This works whether you are using >> one of the standard R sym

[R] heatmap.2 dendogram algorithm

2008-06-16 Thread RobertsLRRI
Hello does anyone know what algorithm is used to produce the hierarchical clustering in the gplots package using the function heatmap.2? I think it may be the complete linkage clustering algorithm, but I can't find a source that seems reliable. Thank you and sorry if I posted this in the wrong

Re: [R] alternative to matching/merge?

2008-06-16 Thread Lana Schaffer
Jim, Is it possible to do a do.call(rbind,d.frame) with a list like using lapply(data,func,args)? I have not successfully executed this. Lana -Original Message- From: hadley wickham [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2008 2:54 PM To: jim holtman Cc: Lana Schaffer; r-help@r-

[R] x labels out of Quartz canvas

2008-06-16 Thread MeMooMeM
Hi R world, I am such a newbie, with only 4-5 days of R experience. I did a search in forum history but couldn't find a solution to my problem... Sorry if it's obvious: I managed to draw a barplot (yey!) with xlabels of 'long' names (filenames, to be particular). To make them readable, I place

Re: [R] Plotting 3d data?

2008-06-16 Thread Duncan Murdoch
On 16/06/2008 4:57 PM, Wesley Tansey wrote: If your data is really a bunch of points, not on a grid, then you need to use plot3d() to plot it as points, or convert it to a surface. The interp() function in the akima package can do that. (There are lots of other possibilities too.) Actually

Re: [R] in axis() suppressing axis line but keeping tick marks

2008-06-16 Thread Duncan Murdoch
On 16/06/2008 4:49 PM, Peter Dalgaard wrote: Andrew Yee wrote: I've been trying to figure out a parameter that will let you separately adjust the parameters for the axis line from the tick mark. In the following example, I would like to suppress the axis line, but keep the tick marks. The so

Re: [R] Lattice: Superpose bwplot and dotplot [newbie question]

2008-06-16 Thread Stephen Weigand
On Mon, Jun 16, 2008 at 4:40 PM, Lord Yo <[EMAIL PROTECTED]> wrote: > > Hello everyone > > I have dataset containing a monetary value (ABS) and two factors (Fct, > Group). I am able to create useful using: > > bwplot(ABS~Group|Fct) > and > dotplot(ABS~Group|Fct) > > Question: What do I have to do

Re: [R] Annoyance in as.numeric

2008-06-16 Thread Gavin Simpson
On Mon, 2008-06-16 at 14:50 -0700, Taylor, Z Todd wrote: > I generally do something like > > storage.mode(my.matrix) <- "double" Ahh, that's what I was missing; I was side tracked by working out why I couldn't write an S3 method for as.double for matrices, and missed the proper solution in th

Re: [R] Annoyance in as.numeric

2008-06-16 Thread markleeds
thanks for your correction Gavin. i read ?data.matrix and neglected to pay attention to the last line of the description: "Factors and ordered factors are replaced by their internal codes". On Mon, Jun 16, 2008 at 5:30 PM, Gavin Simpson wrote: On Mon, 2008-06-16 at 15:35 -0500, [EMAIL PR

Re: [R] Annoyance in as.numeric

2008-06-16 Thread Taylor, Z Todd
I generally do something like storage.mode(my.matrix) <- "double" --Todd -- Why do you recite at a play and play at a recital? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gavin Simpson > Sent: Monday, June 16, 2008 2:31 PM > To: [EMAIL

[R] Constrained Optimized Binning Procedure....implementation help/idea needed.

2008-06-16 Thread Marko Milicic
Dear R Helpers, At the moment I'm working on the project to implement "optimal binning" function. It will be primarily used as a tool for logistic regression. something very similar to http://www2.sas.com/proceedings/forum2008/153-2008.pdf* *but applied in diferent problem space...* *The prob

Re: [R] Annoyance in as.numeric

2008-06-16 Thread Bert Gunter
On Mon, Jun 16, 2008 at 4:22 PM, Alberto Monteiro wrote: > Why does as.numeric convert matrices and arrays to vectors? > Because that's what it's documented to do! " as.numeric is a generic function, but S3 methods must be written for as.double. It is identical to as.double (and as.real). " A

[R] Lattice: Superpose bwplot and dotplot [newbie question]

2008-06-16 Thread Lord Yo
Hello everyone I have dataset containing a monetary value (ABS) and two factors (Fct, Group). I am able to create useful using: bwplot(ABS~Group|Fct) and dotplot(ABS~Group|Fct) Question: What do I have to do to overlay the dotplot with the bwplot (same data set)? I've found a couple of posts

Re: [R] Annoyance in as.numeric

2008-06-16 Thread Gavin Simpson
On Mon, 2008-06-16 at 15:35 -0500, [EMAIL PROTECTED] wrote: > hi: you can do below but i don't know if it's worth it ? > > newx <- data.matrix(data.frame(x)) > print(newx) That doesn't work Mark: > str(data.frame(x)) 'data.frame': 2 obs. of 2 variables: $ X1: Factor w/ 2 levels "1","2": 1 2

Re: [R] Superimposing Line over Histogram in Density Plot

2008-06-16 Thread Carl Witthoft
I do it a bit differently: Once you've got myhist, you can plot a line on the existing histogram plot with something like: smoo<-spline(myhist$breaks[1:length(myhist$breaks)-1],myhist$counts) lines(smoo$x,smoo$y,col='green') You'll have to muck a bit with scale factors to make the spline curve

[R] Error bars within xyplot, panel = function(x,y, ....)

2008-06-16 Thread David Afshartous
All, I'm trying to adapt some code provided by Deepayan Sarkar from a previous thread (https://stat.ethz.ch/pipermail/r-help/2005-October/081571.html) on this topic. ## This code produces a graph w/o error bars: xyplot(Y ~ Hr, data, groups=DRUG, panel=function(x,y,...){ panel.x

Re: [R] Plotting 3d data?

2008-06-16 Thread Wesley Tansey
> If your data is really a bunch of points, not on a grid, then you need > to use plot3d() to plot it as points, or convert it to a surface. The > interp() function in the akima package can do that. (There are lots of > other possibilities too.) Actually, my data is on a grid. The values ar

Re: [R] in axis() suppressing axis line but keeping tick marks

2008-06-16 Thread Andrew Yee
Thanks for tracking this down. Andrew On Mon, Jun 16, 2008 at 4:49 PM, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > Andrew Yee wrote: > >> I've been trying to figure out a parameter that will let you separately >> adjust the parameters for the axis line from the tick mark. >> >> In the following

Re: [R] in axis() suppressing axis line but keeping tick marks

2008-06-16 Thread Peter Dalgaard
Andrew Yee wrote: I've been trying to figure out a parameter that will let you separately adjust the parameters for the axis line from the tick mark. In the following example, I would like to suppress the axis line, but keep the tick marks. The source code is the ultimate reference. We have i

Re: [R] surface plotting

2008-06-16 Thread Duncan Murdoch
On 6/16/2008 4:40 PM, Duncan Murdoch wrote: On 6/16/2008 4:25 PM, Floyd poole wrote: I am new to R and what to find out which package would be best to create a surface plot, 2d or 3d if possible. I have a matrix (depth.dat) which has over 15k depth measurements from an ultrasonic corrosion mapp

Re: [R] surface plotting

2008-06-16 Thread Duncan Murdoch
On 6/16/2008 4:25 PM, Floyd poole wrote: I am new to R and what to find out which package would be best to create a surface plot, 2d or 3d if possible. I have a matrix (depth.dat) which has over 15k depth measurements from an ultrasonic corrosion mapping application. These depth measurements onl

Re: [R] Annoyance in as.numeric

2008-06-16 Thread markleeds
hi: you can do below but i don't know if it's worth it ? newx <- data.matrix(data.frame(x)) print(newx) On Mon, Jun 16, 2008 at 4:22 PM, Alberto Monteiro wrote: Why does as.numeric convert matrices and arrays to vectors? as.numeric(matrix(c("1", "2", "3", "4"), 2, 2)) [1] 1 2 3 4 I could

Re: [R] Plotting 3d data?

2008-06-16 Thread Duncan Murdoch
On 6/16/2008 1:32 PM, Wesley Tansey wrote: Hi all! I'm very new to R, and I'm having trouble figuring out how to go from a file of points that I have to a 3d surface plot of the data. I typically have something like this: X Y Z 0.0050.02334.45 0.0035 0.63

[R] surface plotting

2008-06-16 Thread Floyd poole
I am new to R and what to find out which package would be best to create a surface plot, 2d or 3d if possible. I have a matrix (depth.dat) which has over 15k depth measurements from an ultrasonic corrosion mapping application. These depth measurements only have one axis (x) but I have used Octave

[R] weights in lmer

2008-06-16 Thread Brian S Cade
I originally sent this to Doug Bates but have received no reply yet so I thought I would expand to a wider source. I've been trying to estimate linear mixed effect models in lmer() from the lme4 package using the weights option. The help and code for lmer() suggest to me that this is implement

[R] Annoyance in as.numeric

2008-06-16 Thread Alberto Monteiro
Why does as.numeric convert matrices and arrays to vectors? as.numeric(matrix(c("1", "2", "3", "4"), 2, 2)) [1] 1 2 3 4 I could only figure out ugly ways to bypass this, like: x <- matrix(c("1", "2", "3", "4"), 2, 2) array(as.numeric(x), dim = dim(x), dimnames = dimnames(x)) Alberto Monteiro _

Re: [R] 回复: cch() and coxph() for case-c ohort

2008-06-16 Thread Peter Dalgaard
Jin Wang wrote: I tried to compare if cch() and coxph() can generate same result for same case cohort data Use the standard data in cch(): nwtco Since in cch contains the cohort size=4028, while ccoh.data size =1154 after selection, but coxph does not contain info of cohort size=4028. The roug

Re: [R] minimizing title's police

2008-06-16 Thread Patrick Connolly
On Mon, 16-Jun-2008 at 11:35AM -0700, hanen wrote: |> |> |> in order to minimize the police of the title of my graph i tried to use: |> |> >title("nombre de fleurs données journellement par 6 cereus peruvianus du |> 1/07/02 au 31/09/02",font=0) |> |> but this message appears: |> |> Erreur dan

[R] error in runif

2008-06-16 Thread Yasin Hajizadeh
Hi all I would be grateful you can help me with my problem. I try to run an optimization code . in one line I have runif in order to sample the PDF. I get this error while i run it. Error in runif(1, f$d[[n.of.u.vars + n.of.o.vars + j]][[2]][1], f$d[[n.of.u.vars + : invalid argumen

Re: [R] barplot with color coding according to value

2008-06-16 Thread Henrique Dallazuanna
Perhaps something like this: x <- sample(10:50, 10, rep=TRUE) cols <- as.character(cut(x, breaks = c(0, 10, 20, 30,max(x)), labels = c("green", "blue", "yellow", "red"))) barplot(x, col = cols) On Mon, Jun 16, 2008 at 4:15 PM,

Re: [R] cch() and coxph() for case-cohort

2008-06-16 Thread Terry Therneau
- begin included message - I tried to compare if cch() and coxph() can generate same result for same case cohort data Use the standard data in cch(): nwtco Since in cch contains the cohort size=4028, while ccoh.data size =1154 after selection, but coxph does not contain info of

[R] barplot with color coding according to value

2008-06-16 Thread maria
Hello, I want to use R to produce nice meteograms... For this I would need to color-code my barplot according to the value plotted say if value x > 30 ... the bar is red ; if x between 20 and 10, the bar is blue etc... any ideas how to proceed ? Thank You a lot, maria

Re: [R] prediction intervals for random effects in nlme

2008-06-16 Thread Dieter Menne
Marc Bernard yahoo.fr> writes: > > Is there a function to calculate the  prediction intervals for random effects in non-linear mixed > models? I found a way to do it for linear mixed models but not for non-linear mixed one. Please do not send HTML mail to the list. A discussion and a caveat by

[R] in axis() suppressing axis line but keeping tick marks

2008-06-16 Thread Andrew Yee
I've been trying to figure out a parameter that will let you separately adjust the parameters for the axis line from the tick mark. In the following example, I would like to suppress the axis line, but keep the tick marks. Thanks, Andrew foo <- data.frame(x=1:3, y=4:6) plot(foo$x, foo$y, type="

Re: [R] left-aligned title?

2008-06-16 Thread Henrique Dallazuanna
Try with mtext: plot(rnorm(100)) mtext(text = "Left", side = 3, adj = 0) On Mon, Jun 16, 2008 at 2:39 PM, Carlos Gershenson <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to insert a letter in a plot corner outside the plotting area. > Thus, "legend" and "text" don't seem to work. "title" does

[R] Dual axis labeling of a single quantity

2008-06-16 Thread Thomas Adams
I have a problem where I need to label the vertical axes of a Boxplot with related, but different quantities (flow & height), which have a known relationship. Primarily I want to plot the variable as a flow on the left axis and on the opposing right axis, show the corresponding height. Is it po

[R] minimizing title's police

2008-06-16 Thread hanen
in order to minimize the police of the title of my graph i tried to use: >title("nombre de fleurs données journellement par 6 cereus peruvianus du 1/07/02 au 31/09/02",font=0) but this message appears: Erreur dans title("nombre de fleurs données journellement par 6 cereus peruvianus de 1/07/02

[R] pvclust distance matrix

2008-06-16 Thread Strobel, Bradley
Hello, I am attempting to assign significance levels to a UPGMA cluster analysis as part my doctoral research. The pvclust function works well but doesn't include the similarity index I need (morisita's) as an option for computing a distance matrix. Morisita's is available in vegdist in the

[R] Creating correlated multivariate dataset

2008-06-16 Thread sk
Hello list, I am trying to test a model but for the beginning I want to do this by using simulated dataset. The model is Y_t = X_t %*% beta + e Where Y : (Nx1); X: (Nxp); beta: (0.6,0.3,0.1); e-uncorrelated normally distributed variates for each t. and later I want to use to use this datas

[R] left-aligned title?

2008-06-16 Thread Carlos Gershenson
Hi, I am trying to insert a letter in a plot corner outside the plotting area. Thus, "legend" and "text" don't seem to work. "title" does the trick, but I cannot find a way of moving it from the center to the left corner... I already tried with a few parameters from par, but title does no

Re: [R] save workspace while running R on a cluster

2008-06-16 Thread Manisha Brahmachary
Thanks your suggestion works -:-) From: milton ruser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 2:42 PM To: Manisha Brahmachary Cc: r-help@r-project.org Subject: Re: [R] save workspace while running R on a cluster Hi Manisha, How about you i

[R] Error in maximum likelihood estimation.

2008-06-16 Thread Dong-hyun Oh
Dear UseRs, I wrote the following function to use MLE. - mlog <- function(theta, nx = 1, nz = 1, dt){ beta <- matrix(theta[1:(nx+1)], ncol = 1) delta <- matrix(theta[(nx+2):(nx+nz+1)], ncol = 1) sigma2 <- theta[nx+nz+2] gamma <- theta[nx+nz+3]

[R] Lattice: Superpose bwplot on dotplot [Newbie Question]

2008-06-16 Thread Lord Yo
Hello everyone I have dataset containing a monetary value (ABS) and two factors (Fct, Group). I am able to create useful using: bwplot(ABS~Group|Fct) and dotplot(ABS~Group|Fct) Question: What do I have to do to overlay the dotplot with the bwplot (same data set)? I've found a couple of posts

Re: [R] ggplot2: How to remove legend component for geom_errorbar() ?

2008-06-16 Thread Carsten Jaeger
Hi Hadley, thanks for your tip! It worked fine (though I had to use "tile" instead of "point"). I see your point to handle legends the way you do, which is a very convenient feature of ggplot. It's great for points, lines, bars etc., but in the particular case of error bars, I think it would be re

Re: [R] using spec.pgram

2008-06-16 Thread Anthony Mathelier
OK, it seems like I do not succeed in expressing what I do, or want to do. So, I give you the example that bring me to this kind of analysis. I wrote the paper "Chromosomal periodicity of evolutionary conserved gene pairs" (which you can download at http://www.pnas.org/cgi/reprint/104/25/10559). In

[R] 回复: cch() and coxph() for case-coh ort

2008-06-16 Thread Jin Wang
I tried to compare if cch() and coxph() can generate same result for same case cohort data Use the standard data in cch(): nwtco Since in cch contains the cohort size=4028, while ccoh.data size =1154 after selection, but coxph does not contain info of cohort size=4028. The rough estimate between

Re: [R] Plotting 3d data?

2008-06-16 Thread Henrique Dallazuanna
Try scatterplot3d function in the package with same name. On Mon, Jun 16, 2008 at 2:32 PM, Wesley Tansey <[EMAIL PROTECTED]> wrote: > Hi all! > > > > I'm very new to R, and I'm having trouble figuring out how to go from a > file > of points that I have to a 3d surface plot of the data. I typicall

[R] Plotting 3d data?

2008-06-16 Thread Wesley Tansey
Hi all! I'm very new to R, and I'm having trouble figuring out how to go from a file of points that I have to a 3d surface plot of the data. I typically have something like this: X Y Z 0.0050.02334.45 0.0035 0.63 28.48 . I've tried looking at the persp

Re: [R] Linear Regression ?

2008-06-16 Thread Roland Rau
Hi, did you have a look at the manual "An Introduction to R"? (http://cran.r-project.org/doc/manuals/R-intro.html). Chapter "Statistical Models in R" should answer (most of) your questions concerning linear regression. kayj wrote: Also each x is a categorical variable with 4 categories so I

Re: [R] candisc() error message

2008-06-16 Thread Michael Friendly
John is correct & the error message you got was clear: the error SSP matrix is of deficient rank. Possible solutions: - Regroup the factor levels to fewer and/or - Combine some of the species to broader classes so you have fewer than 17 response variables - Collect more samples hope this help

[R] prediction intervals for random effects in nlme

2008-06-16 Thread Marc Bernard
Dear all,   This is a relist of my previous question. I noticed that some characters were  not displayed in the previous version.     Is there a function to calculate the  prediction intervals for random effects in non-linear mixed models? I found a way to do it for linear mixed models but not

Re: [R] ggplot2: How to remove legend component for geom_errorbar() ?

2008-06-16 Thread hadley wickham
> thanks for your tip! It worked fine (though I had to use "tile" instead > of "point"). I see your point to handle legends the way you do, which is > a very convenient feature of ggplot. It's great for points, lines, bars > etc., but in the particular case of error bars, I think it would be > reas

Re: [R] sizing non-vector point shapes in ggplot2

2008-06-16 Thread hadley wickham
> Thanks for getting back to me so quickly. This mostly works, in that: > > - When I ran it just as you sent it, I get this error: > Error in inherits(x, "factor") : object "fill" not found Oh yeah, that's a change in the development version. > - but when I took out "fill = fill" from your s

Re: [R] R as chart engine in web-service

2008-06-16 Thread jim holtman
I think that you have to define some type of criteria on what you expect the performance to be. There is a cost/benefit tradeoff in having multiple servers with a load balancer and this all depends on how much you want to spend on a solution. You might want to prototype it in R to at least get an

[R] re-arranging unsorted data for surface/contour plot

2008-06-16 Thread Dieter Vanderelst
Hi list, I'm struggling with plotting a 3d data set. I have a data frame with x,y and z values. They occur in no particular order (ie x and y are not ordered). However, I want to visualize the data using a contour plot. Now, the x,y and z data going into contour() are supposed to be ordered.

[R] optim() and starting values.

2008-06-16 Thread Dong-hyun Oh
Dear UseRs, I wrote the following function to estimate parameters using MLE. mlog <- function(theta, nx = 1, nz = 1, dt){ beta <- matrix(theta[1:(nx+1)], ncol = 1) delta <- matrix(theta[(nx+2):(nx+nz+1)], ncol = 1) sigma2 <- theta[nx+nz+2] gamm

Re: [R] round(1.5) = round(2.5) = 2?

2008-06-16 Thread Greg Snow
The logic behind the round to even rule is that we are trying to represent an underlying continuous value and if x comes from a truly continuous distribution, then the probability that x==2.5 is 0 and the 2.5 was probably already rounded once from any values between 2.45 and 2.54...,

Re: [R] sizing non-vector point shapes in ggplot2

2008-06-16 Thread Michael Frumin
On Mon, Jun 16, 2008 at 3:55 PM, hadley wickham <[EMAIL PROTECTED]> wrote: > On Mon, Jun 16, 2008 at 7:52 AM, mfrumin <[EMAIL PROTECTED]> wrote: > > > > Dear all, > > > > With normal plotting, one can size a set of points in a plot using a > vector > > argument to cex in the points() function. Th

Re: [R] aggregate() function, strange behavior for augmented data

2008-06-16 Thread David Afshartous
Everything was read in the same way, and str(junk1) confirms that they are the same structure. This is very strange. ## original data: > str(junk1) 'data.frame': 96 obs. of 3 variables: $ Hour: int 0 3 5 0 3 5 0 3 5 0 ... $ Drug: Factor w/ 2 levels "D","P": 2 2 2 1 1 1 2 2 2 1 ... $ Aldo:

Re: [R] Importing data with different delimters

2008-06-16 Thread Peter Dalgaard
Greg Snow wrote: > It looks like your original data may be tab seperated, if that is the case > then just use read.delim or use sep='\t' in read.table or scan. > I think that was only half the problem. If you do that, you end up with one column containing both City and State, comma-separated. P

Re: [R] Importing data with different delimters

2008-06-16 Thread milton ruser
Hi David, If the delimier is "tab" try this. my.df<-read.table("my_file.txt", head=T, sep="\t") Cheers, Miltinho Brazil > > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of David Arnold > > Sent: Friday, June 13, 2008 5:15 PM > > To: r-hel

Re: [R] using spec.pgram

2008-06-16 Thread stephen sefick
To get some sort of frequency which in your case seem to be cycles per distance? Is a valid use of a fourier transform as long as it is a distance that is measured in a way that would be analogous to a time series- In other words if the distance proceeds from an origin in one direction- geophysic

Re: [R] Importing data with different delimters

2008-06-16 Thread Greg Snow
It looks like your original data may be tab seperated, if that is the case then just use read.delim or use sep='\t' in read.table or scan. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -Original Message- > From: [EMA

[R] aggregate() function, strange behavior for augmented data

2008-06-16 Thread David Afshartous
All, I'm re-running some analysis that has been augmented with additional data. When I use the exact same code for the augmented data, the behavior of the aggregate function is very strange, viz., one of the resulting variables is now coded as a factor while it was coded as numeric for the origi

Re: [R] stretching text vertically

2008-06-16 Thread Greg Snow
You can embed plots using the subplot function in the TeachingDemos package. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alex Rey

Re: [R] R on an ASUS eee PC, continued - installing packages

2008-06-16 Thread Prof Brian Ripley
On Mon, 16 Jun 2008, Peter Dalgaard wrote: Prof Brian Ripley wrote: On Mon, 16 Jun 2008, Peter Dalgaard wrote: Millo Giovanni wrote: The only thing I wish I were able to do now is to have the graphics windows defaults changed to a size fitting the small 9'' screen, as now I have to reduce i

Re: [R] sizing non-vector point shapes in ggplot2

2008-06-16 Thread hadley wickham
On Mon, Jun 16, 2008 at 7:52 AM, mfrumin <[EMAIL PROTECTED]> wrote: > > Dear all, > > With normal plotting, one can size a set of points in a plot using a vector > argument to cex in the points() function. This works whether you are using > one of the standard R symbols (i.e. 19+) or some ascii sy

Re: [R] Delete Block of Rows

2008-06-16 Thread milton ruser
Hi there, The subset function is available on your Base R. So you need not to load any package. May be it is not working because I suppose that your "rownames" is a sequential one (1...4000). Case it is not true, the command will not work. Anyway, I think that those line that are working find is

Re: [R] ggplot2: How to remove legend component for geom_errorbar() ?

2008-06-16 Thread hadley wickham
Hi Carsten, In my eagerness to get every component of the legend working automatically, I've completed neglected a way to turn bits off of you don't want them (the philosophy is that every geom that uses an aesthetic should appear in the legend in some way). The best thing I can suggest at the mo

[R] Linear Regression ?

2008-06-16 Thread kayj
Hi All, I have a data with 15 columns. the first 10 column are dependent(y’s) variables and the following 5 an columns are the independent variables(x’s) ( MY DATA HAS A HEADER WITH THE NAME OF THE VAIABLES). I need to apply linear regression y=a+bx where I need x to be one of the independent va

[R] Error in maximum likelihood estimation.

2008-06-16 Thread Dong-hyun Oh
Dear UseRs, I wrote the following function to use MLE. - mlog <- function(theta, nx = 1, nz = 1, dt){ beta <- matrix(theta[1:(nx+1)], ncol = 1) delta <- matrix(theta[(nx+2):(nx+nz+1)], ncol = 1) sigma2 <- theta[nx+nz+2] gamma <- theta[nx+nz+3]

Re: [R] Delete Block of Rows

2008-06-16 Thread nmarti
Thanks for all the replies. My data frame is actually 4000 rows and 10 columns. This line, df <- subset( df, !( rownames(df) %in% 1:25 ) ) Did not work for me. Is there a certain library I need to load for this to work (I'm assuming there isn't)? I didn't get an error message, warning, or anyt

Re: [R] using spec.pgram

2008-06-16 Thread Anthony Mathelier
Perhaps I'm applying spec.pgram wrong as you said. I will explain what I want, so you can tell me why I'm wrong and perhaps what I have to do to do it well. I have some points in a 1-D space and I want to know if they are spaced at a certain periodic distance. So, I computed all the distances betwe

Re: [R] Generating Reports from R.

2008-06-16 Thread Henrique Dallazuanna
Try using Sweave On Mon, Jun 16, 2008 at 10:37 AM, David Keegan <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a non-interactive R script that currently produces > various graphs in png or pdf format. I need to program the > script to combine the graphs with various pages of textual > information,

[R] Generating Reports from R.

2008-06-16 Thread David Keegan
Hi, I have a non-interactive R script that currently produces various graphs in png or pdf format. I need to program the script to combine the graphs with various pages of textual information, including some in tabular format, into an output report in pdf or html format. What is the recommended

Re: [R] contrasts using adonis function

2008-06-16 Thread Gavin Simpson
On Mon, 2008-06-16 at 14:38 +0200, Luis San José García wrote: > Hi, > > Somebody knows how to make contrasts if i'm using the function adonis? What is wrong with the defaults? From ?adonis: Usage: adonis(formula, data, permutations = 5, method = "bray", strata = NULL, contr.un

[R] R vs SAS and HLM on multilevel analysis- basic question

2008-06-16 Thread Ista Zahn
On Jun 16, 2008, at 6:00 AM, [EMAIL PROTECTED] wrote: > From: eugen pircalabelu <[EMAIL PROTECTED]> > Date: June 15, 2008 7:16:09 PM EDT > To: R-help <[EMAIL PROTECTED]> > Subject: [R] R vs SAS and HLM on multilevel analysis- basic question > > > Hi R users! > > I am trying to learn some multilev

Re: [R] Superimposing Line over Histogram in Density Plot

2008-06-16 Thread David Arnold
Look here: http://msenux.redwoods.edu/mathdept/R/CentralLimit.php D. On Jun 15, 2008, at 11:25 PM, Gundala Viswanath wrote: Hi, Currently I have a density plot generated with this snippet. Is there a way I can add a line curve on top of it? I mean in one figure __BEGIN__ myhist <- hist

[R] why does these warning mean?

2008-06-16 Thread Peng Jiang
Hi , I don't know whether it is a Mac specific problem. I hope it does not bother you. When I start R each time I got the following warning , I reinstall for many times the problem still exists. R(4053,0xa0619fa0) malloc: *** error for object 0x15630350: double free *** set a breakpo

Re: [R] R vs SAS and HLM on multilevel analysis- basic question

2008-06-16 Thread Douglas Bates
We may want to move this discussion to the R-SIG-Mixed-Models list, which I have cc:'d on this reply. On Sun, Jun 15, 2008 at 6:16 PM, eugen pircalabelu <[EMAIL PROTECTED]> wrote: > Hi R users! > I am trying to learn some multilevel analysis, but unfortunately i am now > very confused. The reaso

[R] contrasts using adonis function

2008-06-16 Thread Luis San José García
Hi, Somebody knows how to make contrasts if i'm using the function adonis? Thanks. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provi

[R] sizing non-vector point shapes in ggplot2

2008-06-16 Thread mfrumin
Dear all, With normal plotting, one can size a set of points in a plot using a vector argument to cex in the points() function. This works whether you are using one of the standard R symbols (i.e. 19+) or some ascii symbol, such as '/' eg: plot(1:10, 1:10, type='n'); points(1:10, 1:10, cex = 1

Re: [R] R on an ASUS eee PC, continued - installing packages

2008-06-16 Thread Peter Dalgaard
Prof Brian Ripley wrote: > On Mon, 16 Jun 2008, Peter Dalgaard wrote: > >> Millo Giovanni wrote: >>> >>> The only thing I wish I were able to do now is to have the graphics >>> windows defaults changed to a size fitting the small 9'' screen, as now >>> I have to reduce it and move it to the right b

  1   2   >