[R] reshape with function(x,y)?

2011-05-29 Thread John K. Williams
Hi, I'm not sure if this is impossible or if I just don't know the syntax. example: library(reshape); library(corpcor); data-data.frame(ids=c(A,A,A,B,B,B),rate=c(12,14,17,10,8,5),sample=c(100,80,60,50,40,45)); data_melted-melt.data.frame(data,id.vars=c(ids),measure.vars=c(rate,sample)); #the

[R] diamond/triangle plot

2010-09-01 Thread John K. Williams
Hi, does anyone have any idea how I might make a plot in R similar to this: http://assets.sbnation.com/assets/272612/BATTER-1B-PENA.png Specifically looking to plot 3 numbers in a triangle like that. [[alternative HTML version deleted]] __

Re: [R] diamond/triangle quot;plotquot;

2010-09-01 Thread John K. Williams
I'll check out those functions, thanks much for the help. On Wed, Sep 1, 2010 at 8:38 PM, Ben Bolker bbol...@gmail.com wrote: David Winsemius dwinsemius at comcast.net writes: On Sep 1, 2010, at 7:50 PM, John K. Williams wrote: Hi, does anyone have any idea how I might make a plot

Re: [R] filled.contour formatting questions

2010-03-23 Thread John K. Williams
Hmm yes that is what I'm looking for in terms of color scale control, but I need it for contoured plots. John. On Mon, Mar 22, 2010 at 10:32 PM, Jim Lemon j...@bitwrit.com.au wrote: On 03/23/2010 12:48 PM, John K. Williams wrote: Hello, I'm having some trouble getting things to look as I

[R] filled.contour formatting questions

2010-03-22 Thread John K. Williams
Hello, I'm having some trouble getting things to look as I want with filled.contour. 1. My first issue is that I am unable to add line segments to my plot where I want them. Using the rug pattern example: x - y - seq(-4*pi, 4*pi, len = 27); r - sqrt(outer(x^2, y^2, +));

[R] probit with robust clustered errors?

2009-12-15 Thread John K. Williams
I attempted to use glmD from the Design library and then robcov to get robust clustered errors from a probit model, but see now that Design is not able to do this because robcov needs the residuals method for the fitter to allow a type=score or type=hscore (for Efron's method) argument. Until

[R] areg (stata) equivalent in R?

2009-12-01 Thread John K. Williams
hi, i am looking to reproduce a study done in stata in R, where a regression was done while absorbing a categorical variable.  i am new to R, i've i installed the design package but haven't been able to find an applicable function. thanks for any help.