Re: [R] Multi-panel Pie Charts.

2010-03-24 Thread Gary Miller
Gurmeet and I are looking for such utility. It could be helpful! On Wed, Mar 24, 2010 at 3:46 PM, Gary Miller wrote: > Thanks for your reply Sharpie. I completely understand that it may not be > the best to go with muti-panel pie charts, but my group would like to have > this utility a

Re: [R] Multi-panel Pie Charts.

2010-03-24 Thread Gary Miller
Thanks for your reply Sharpie. I completely understand that it may not be the best to go with muti-panel pie charts, but my group would like to have this utility along with barplot/dotplot (may be, using it for proportions data). Thanks, ~Gurmeet On Wed, Mar 24, 2010 at 3:38 PM, Sharpie wrote:

[R] print() / split()

2010-02-11 Thread Gary Miller
Hi All, Can anyone please tell me what is the meaning of four coordinates in below print statement. Currently its dividing plotting window into 1 X 2 and I want to change it to 2 X 2 [ equivalent of par(mfrow=c(2,2)) ]. Thanks, require(lattice) p1=barchart(yield ~ variety | site, data = barley,

Re: [R] Can you delete me from the list I don't want to receive the emails from the forum anymore, thank you!

2009-12-20 Thread Gary Miller
A couple of week back someone posted this. It applies to you too: None of the people reading this at the moment can do this for you. Read the information on the page where you subscribed.: https://stat.ethz.ch/mailman/listinfo/r-help Q: How many psychiatrists does it take to unscrew a light bulb

Re: [R] DROP and KEEP statements in R

2009-12-19 Thread Gary Miller
Try this, library(lattice) data(barley) names(barley) # Removing first column barley <- barley[,c(-1)] names(barley) # Keeping 1st and 3rd column barley <- barley[,c(1,3)] names(barley) HTH, Gary On Sat, Dec 19, 2009 at 3:21 PM, wrote: > What is equivalent to DROP or KEEP statements of SAS

Re: [R] ggplot2 / lattice

2009-12-18 Thread Gary Miller
lattice) bwplot(val ~ g | G2, dta, panel = function(x,y,...) { panel.bwplot(x,y,..., pch="|", col="red", fill="red", box.width=.3) } ) Thanks, Gary On Thu, Dec 17, 2009 at 11:01 PM, Felix Andrews wrote: > Look at ?panel.bwplot specifically 'fil

Re: [R] ggplot2 / lattice

2009-12-17 Thread Gary Miller
XX", "YY"))) library(lattice) bwplot(val ~ g | G2, dta) Thanks, Gary On Thu, Dec 17, 2009 at 10:09 PM, Gabor Grothendieck < ggrothendi...@gmail.com> wrote: > Try this: > > bwplot(val ~ g | G2, dta) > > > On Thu, Dec 17, 2009 at 9:34 PM, Gary Miller >

[R] ggplot2 / lattice

2009-12-17 Thread Gary Miller
Hi R Users, Is there a equivalent function for the following R code in Lattice package. I want to plot a grouped box plots (grouped by two factors). g <- rep.int(c("A", "B", "C", "D"), 125) t <- rnorm(5000) a <- sample(t, 500, replace=TRUE) b <- sample(t, 500, replace=TRUE) dta <- data.frame(val

Re: [R] re-ordering x-lables using barchart()

2009-12-08 Thread Gary Miller
- Phil Spector > Statistical Computing Facility > Department of Statistics > UC Berkeley > spec...@stat.berkeley.edu > > > On Tue, 8

[R] re-ordering x-lables using barchart()

2009-12-08 Thread Gary Miller
Hi R Users, I'm trying to re-order the "site names" ("Waseca", "Morris", ...). I'm using following code: libarry(lattice) barchart(yield ~ variety | site, data = barley, groups = year, layout = c(6,1), aspect=.7, ylab = "Barley Yield (bushels/acre)", scal

Re: [R] barchart() {lattice} help.

2009-12-06 Thread Gary Miller
Thanks Uwe, I got your suggestions part too. 2009/12/6 Uwe Ligges > > > Peng Cai wrote: > >> Hi, >> >> I'm plotting grouped barplot using following code and data. I need help >> with >> re-ordering the labels. >> >> 1. On x-axis the factor "AGE" is grouped in order "0--4", "15--18", >> "5--14";

Re: [R] SAS "datalines" or "cards" statement equivalent in R?

2009-12-06 Thread Gary Miller
> See ?read.table and ?textConnection for more information. > > HTH, > Jorge > > > On Sat, Dec 5, 2009 at 8:11 PM, Gary Miller <> wrote: > >> Hi R Users, >> >> Is there a equivalent command in R where I can read in raw data? For >> example >

[R] SAS "datalines" or "cards" statement equivalent in R?

2009-12-05 Thread Gary Miller
Hi R Users, Is there a equivalent command in R where I can read in raw data? For example I'm looking for equivalent R code for following SAS code: DATA survey; INPUT id sex $ age inc r1 r2 r3 ; DATALINES; 1 F 35 17 7 2 2 17 M 50 14 5 5 3 33 F 45 6 7 2 7 49 M 24 14 7 5 7 65 F