Re: [R] deldir package - voronoi
Team, we figured this out, Roger at XLSOLUTIONS solved the puzzle for us..!! Okay you can easily change the color palette. see below: library(MASS) library(deldir) set.seed(1123) y - runif(20) x - runif(20) #run voronoi from deldir package ddd - deldir(x,y) ttt - tile.list(ddd) plot.deldir(ddd,wlines=tess) #play with colors *ccc - colors()[1:20] or ccc -heat.colors(20) or ccc -terrain.colors(20)* plot(ttt,polycol=ccc,close=T) Rolf Turner wrote: On 12/08/2007, at 1:22 PM, zubin wrote: Hello! I am using the deldir package to visualize my data, pretty neat. However, i need to fill the colors using polycol =, fill with colors like a heatmap - more of a gradient fill. The only colors i get are very blocky - how do i assign the correct colors for a gradient, even a grayscale? i tried the chart of R colors, using 200 numbers for grayscale but not getting them. The polycol = colors the cells in the tesselation with the value a specific vector for color. snip I'm sorry, but I can't help here. I've been struggling with colors, in a different context, recently myself, and I'm unclear as to how they work. There are a bunch of functions --- palette(), colorRamp(), colorRampPalette() that probably relate to what you want to do, but I'm not sure just *how* they relate. With a bit of luck, someone cleverer than I will come to your rescue. cheers, Rolf Turner ## Attention:This e-mail message is privileged and confidential. If you are not theintended recipient please delete the message and notify the sender.Any views or opinions presented are solely those of the author. This e-mail has been scanned and cleared by MailMarshalwww.marshalsoftware.com ## __ R-help@stat.math.ethz.ch 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 provide commented, minimal, self-contained, reproducible code.
[R] deldir package - voronoi
Hello! I am using the deldir package to visualize my data, pretty neat. However, i need to fill the colors using polycol =, fill with colors like a heatmap - more of a gradient fill. The only colors i get are very blocky - how do i assign the correct colors for a gradient, even a grayscale? i tried the chart of R colors, using 200 numbers for grayscale but not getting them. The polycol = colors the cells in the tesselation with the value a specific vector for color. Code below: library(deldir) set.seed(1) #generate data y - runif(20) x - runif(20) z - rep((2:4),2) #run voronoi from deldir package ddd - deldir(x,y) ttt - tile.list(ddd) plot.deldir(ddd,wlines=tess) #play with colors plot(ttt,polycol=z,close=TRUE) __ R-help@stat.math.ethz.ch 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 provide commented, minimal, self-contained, reproducible code.
[R] R contractor Needed - Atlanta GA
Hello, need an R contractor to help on a project, project requires a strong econometrics background, especially package MSBVAR, LME, and the ASSIST packages. We need to estimate some models and produce a user interface to enable simulation of these models. Please email me if your interested and can work on this for 2-3 months. -zubin __ R-help@stat.math.ethz.ch 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 provide commented, minimal, self-contained, reproducible code.
[R] lasso for variable selection
Attended JSM last week and Friedman mentioned the use of LASSO for variable selection (he uses it for rules ensembles). I am an econometrician and not familiar with, i started running the examples in R this week and you get to the plots section of the LARS package. Plots of beta/max(beta) vs standardized coefficients. How does one interpret them? u see plots of each variable converging to zero at different times - its pretty cool - but can i use this for variable importance? for variable selection - i have a group of correlated variables that we need to determine importance in predicting change of a Y variable. -zubin __ R-help@stat.math.ethz.ch 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 provide commented, minimal, self-contained, reproducible code.
[R] proc standardize data frame x and y
Hello! i know these are basic but i cannot seem to find the answer thru my searches.. 1) Can someone recommend an equivalent to SAS PROC Standardize in R? I am in need to frequently standardize a data frame, with z-scores, or squash to 0-1 scale - is there a slick function or package someone can recommend? 2) Also, have data sets with a lot of predictor variables. in the diabetes data frame i see that fields have been grouped to X and Y variables, making it very easy to identify X and Y in the regression techniques. How is this done, how do you group lets say a group of columns into 1 matrix, within a data frame. example: the AsIs group is a matrix of X variables: str(diabetes) `data.frame': 442 obs. of 3 variables: $ x : AsIs [1:442, 1:10] 0.038075 -0.00188 0.085298 -0.08906 0.005383 ... ..- attr(*, dimnames)=List of 2 .. ..$ : NULL .. ..$ : chr age sex bmi map ... ..- attr(*, class)= chr AsIs $ y : num 151 75 141 206 135 97 138 63 110 310 ... $ x2: AsIs [1:442, 1:64] 0.038075 -0.00188 0.085298 -0.08906 0.005383 ... ..- attr(*, .Names)= chr age age age age ... ..- attr(*, dimnames)=List of 2 .. ..$ : chr 1 2 3 4 ... .. ..$ : chr age sex bmi map ... ..- attr(*, class)= chr AsIs __ R-help@stat.math.ethz.ch 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 provide commented, minimal, self-contained, reproducible code.
[R] zero values in LHS and RHS
Hello! I have a data set where i need to predict hotel stays in a 3 month period by customer. I have stays for each customer in the 3 month period and the previous 3 month period + other variables. these stays contain an integer that ranges from 0 to 10. classic poisson distribution. my question is around zeros. usually we could take logs on the stays and run an OLS model i think an enhancement would be to fit a poisson GLM model. i am confused about handling of zeros. i will have zero values on the RHS and potentially on the LHS. It seems like the poisson GLM model can handle zeros on the LHS and RHS. i guess my question is fitting a poisson GLM, are zeros allowed? If so, how is this estimated with a log link function? -zubin __ R-help@stat.math.ethz.ch 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 provide commented, minimal, self-contained, reproducible code.
[R] voronoi tessellations
Hello, looking to draw a voronoi tessellations in R - can anyone recommend a package that has tackled this? some background: i have a economic data set and created a sammons projection, like to now overlay a voronoi tessellation over the sammons 2-D solution for a slick visual, and potentially color each tessellation element based on a metric. home.u - unique(home1) home.dist - dist(home.u) home.sam - sammon(home.dist,k=2) plot(home.sam$points) __ R-help@stat.math.ethz.ch 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 provide commented, minimal, self-contained, reproducible code.
[R] Data Manipulations - Group By equivalent
Hello, a beginner R user - boy i wish there was a book on just data manipulations for SAS users learning R (equivalent to the SAS DATA STEP).. Okay, my question: I have a panel data set, hotel data occupancy by month for 12 months, 1000 hotels. I have a field labeled 'year' and want to consolidate the monthly records using an average into 1000 occupancy numbers - just a simple average of the 12 months by hotel. In SQL this operation is pretty easy, a group by query (group by hotel where year = 2005, avg occupancy) - how is this done in R? (in R language not SQL). Thx! -zubin __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] R Reporting - PDF/HTML mature presentation quality package?
Hello, searching for the key packages so i can output, Text, Tables ,and Graphics into a HTML or PDF report - have R create these reports in an easy and efficient way without LaTeX - I have searched the R pages but don't see any mature packages - anyone have any advice on a easy to use R package one can use for generating publication quality reports? Outputting HTML or PDF. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] R Training in the USA
Hello - need advice on a company or individual who will offer custom training in R in Atlanta Georgia. Specifically need training on data manipulations (equivalent to SAS data steps in R) and R Graphics. Does anyone know folks who train on R or any Firms? Google searches are coming up empty. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] bayesian belief networks to determine causality
Hello, does R estimate belief networks to estimate chains of causality. Anyone point me to the right direction, or the most developed library? looking at DEAL __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] random coefficients in R - simultaneity in panel data
hello - using SAS proc mixed to estimate random coefficients - R has a similar command. However, i need to estimate random coefficients when there exists Simultaneity bias in the cross sectional time series panels - specifically Simultaneity, endogeneity, and lagged dependent variables in panel data. anyone can steer me to an R function or such that can help? __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
RE: [R] JDBC DB access in R
Thanks for the reply - thru R i have large data sets in oracle, mssql, postgres and we have jdbc drivers for all of them - most of these systems are on UNIX/LINUX and ODBC is not used - we use JDBC to hit the DB's usually in java applications we have. other than that we are a large SAS shop and i am trying to find an alternative to SAS, i think R has a good chance. For R and SQL - i assume using the wrapper below is the easiest way to hit databases via SQL - are there any other ways i am missing? or is JDBC route the easiest when ODBC is not available? not sure if R contains some standard database routines that i am not seeing? also does R have some good data manipulations function - if so, could you point me in the right direction (similiar to DATA steps in SAS) -thx! -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Saturday, October 23, 2004 3:03 AM To: zubin Cc: [EMAIL PROTECTED] Subject: Re: [R] JDBC DB access in R The J is for Java (I presume, you did't actually say), and R is written in C. So `all' you need to do is to call a Java wrapper from R and call JDBC from that. I believe it has been done via RSJava. But if all you want to do is to retrieve a dataframe, isn't this rather hard work? On Fri, 22 Oct 2004, zubin wrote: Hello, i see packages referencing using ODBC access to databases via R, are there any packages that use JDBC to submit SQL to a database and return into a data frame? -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] JDBC DB access in R
Hello, i see packages referencing using ODBC access to databases via R, are there any packages that use JDBC to submit SQL to a database and return into a data frame? -zubin __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] r dev site is down
the R developer site has been down for some time, what gives? http://developer.r-project.org/ __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
RE: [R] multi-user engine
Thanks for the feedback, looks like RSERV is a viable solution? http://stats.math.uni-augsburg.de/Rserve/p_index.shtml any info on folks who have experience with Rserve? thx again.. -Original Message- From: A.J. Rossini [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 10:37 AM To: Barry Rowlingson Cc: zubin; [EMAIL PROTECTED] Subject: Re: [R] multi-user engine Barry Rowlingson [EMAIL PROTECTED] writes: A.J. Rossini wrote: zubin [EMAIL PROTECTED] writes: I am presently a SAS user and wanted to configure R to work in a multi-user enteprise environment. Client - Server. Where we have a strong LINUX server supporting about 10 statisticians with R. Anyone have any backround or information they can share to help me get jump-started on setting up R in this environment? Why can't you install R in the usual way on the server and give the statisticians (there's only 10 of them, so its not much admin) accounts on the server? They then login (using an SSH client) and get graphics back via X-windows. Free SSH clients and X-windows servers are available for all the usual platforms. Their filestore would be on the server. I just don't see the advantage (and see plenty of disadvantages) of complicating things with a client-server framework where it might not be necessary. Depends on the environment. I can think of many good reasons for wanting a client-server situation, where the solution you point out would be a complete non-starter. However, since client-server isn't ready at this point without a great deal of work and pain, so it (client-server) is pretty much a non-starter, and the solution you point out is the only get it done this month solution that I know of. best, -tony -- [EMAIL PROTECTED]http://www.analytics.washington.edu/ Biomedical and Health Informatics University of Washington Biostatistics, SCHARP/HVTN Fred Hutchinson Cancer Research Center UW (Tu/Th/F): 206-616-7630 FAX=206-543-3461 | Voicemail is unreliable FHCRC (M/W): 206-667-7025 FAX=206-667-4812 | use Email CONFIDENTIALITY NOTICE: This e-mail message and any attachme...{{dropped}} __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] multi-user engine
hello, i just got introduced to R - WOW its beautiful.. I am presently a SAS user and wanted to configure R to work in a multi-user enteprise environment. Client - Server. Where we have a strong LINUX server supporting about 10 statisticians with R. Anyone have any backround or information they can share to help me get jump-started on setting up R in this environment? Does each user have their own worksession with the serving executing the submitted R code? Has it been done, any feedback? thx in advance.. -zubin __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html