[R] level names with groupdedData object

2007-09-05 Thread Dean Sonneborn
How do I get a grouped data object to use the level names from the input data set? first I gave the levels some names like this: male <-factor(male) levels(male) <- c(“Girls”,”Boys”) Then I created a groupdedData object but the male variable in not part of the grouping formula. Then I fit an

[R] plot log scale, axis original scale

2007-04-09 Thread Dean Sonneborn
. How do I get the ticks to be labeled 2,5, and 9 of the original scale? a<-c(1,2,3,4,5,6,7,8,9,10) bcat<-c(1,1,1,2,2,2,2,3,3,3) boxplot(log(a)~bcat, yaxt="n") axis(2, tick=a) -- Dean Sonneborn, MS Programmer Analyst Department of Public Health Sciences University of California, Da

[R] subset by two variables

2006-08-29 Thread Dean Sonneborn
n the manual for subset seem to be creating whole new data files not just selecting rows based on the contents of the variables. How do I subset based on two variables. -- Dean Sonneborn, MS Programmer Analyst Department of Public Health Sciences University of California, Davis (530) 754-9516

[R] trellis in black and white

2006-08-08 Thread Dean Sonneborn
ables/figure2_March27b.jpg",theme=col.whitebg) print( xyplot(AWGT ~ log(pcb_80) | malex*romanix, data=pcb_graph3a, auto.key = list(lines = TRUE, points = TRUE), ylab="Birth Weight", xlab="log PCB", type=c("p", "smooth"), span=.8) ) dev.off() thanks --

[R] boxplot

2006-05-17 Thread Dean Sonneborn
g PCB", + ylab= + "G B + S M S M ") ) -- Dean Sonneborn, MS Programmer Analyst Department of Public Health Sciences University of California, Davis (530) 754-9516 __ R-help@stat.

[R] map question

2006-03-14 Thread Dean Sonneborn
Would anyone with experience with the map functions know how to divide Czechoslovakia into the Czech Republic and Slovakia. They have been two separate countries for some time now. I'm thinking about the worldhires map database in particular. -- Dean Sonneborn, MS Programmer An

[R] jpeg or tiff file formats

2006-02-08 Thread Dean Sonneborn
d png graphics devices" documentation. It seems to create an empty file. Is it that this function can not work with lattice plots? Can R directly write a jpeg or pgn file? -- Dean Sonneborn, MS Programmer Analyst Department of Public Health Sciences University of California,

[R] footnote in postscript lattice

2006-01-26 Thread Dean Sonneborn
=”Lipid Adjusted PCB”, par.settings = list(superpose.symbol = list(col = colr, pch = plotchar), superpose.line = list(col = colr, pch = plotchar, lty = 1)), type=c("p", "smooth"), span=.8) dev.off() thanks -- Dean Sonneborn, MS Programmer Analyst Departm

[R] 4 smoothed lines on xyplot

2006-01-11 Thread Dean Sonneborn
st(col=colr, pch=plotchar), text=list(levels(pcb_graph3$grpx) , col=colr, pch=plotchar))) -- Dean Sonneborn, MS Programmer Analyst Department of Public Health Sciences University of California, Davis (530) 754-9516 __ R-help@stat.math.ethz.ch ma

[R] multiple lowess line in one plot

2006-01-04 Thread Dean Sonneborn
. What would be the syntax for this? plot(AWGT ~ lipid ) lines(lowess(lipid , AWGT, f=.8)) -- Dean Sonneborn, MS Programmer Analyst Department of Public Health Sciences University of California, Davis (530) 754-9516 __ R-help@stat.math.ethz.c

[R] gee models summary

2005-09-28 Thread Dean Sonneborn
tions? Thanks, -- Dean Sonneborn Programmer Analyst Department of Public Health Sciences University of California, Davis (916) 734-6656 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] reading SAS data files

2005-09-26 Thread Dean Sonneborn
seconds cpu time0.20 seconds Does anyone see what I am doing incorrectly and can they offer any suggestions about getting this to run correctly? I'm not sure where SAS is expecting to find the data file. I have it in the default R directory. Is this where SAS is l

[R] scatter plot

2005-08-11 Thread Dean Sonneborn
el=function(x,y){ panel.xyplot(x,y) panel.lmline(x,y)}, auto.key=TRUE, data=centered, na.strings="", fontfamily = "HersheySans" , scales = list( tick.number = 10)) -- Dean Sonneborn Programmer Analyst Department of Public Health Sciences University

[R] scatter plot

2005-08-11 Thread Dean Sonneborn
I'd like to do a simple scatter plot but instead of using the variable values on the X axis I would like to plot the percentiles. I searched in the manual for percentiles but did not find what I was looking for. I've been using SAS for several years but I new to R. -- Dean

[R] 3 boxplots in one

2005-02-24 Thread Dean Sonneborn
have some sample code where they have done something like this? Thanks, Dean Sonneborn M.S. Public Health Sciences * University of California, Davis 916 734-6656 * formerly Epidemiology & Preventive Medicine [[alternative HTML version del

[R] skip missing values in plots

2005-02-10 Thread Dean Sonneborn
formation", auto.key=TRUE, fontfamily = "HersheySans" ) Dean Sonneborn M.S. Public Health Sciences * University of California, Davis 916 734-6656 * formerly Epidemiology & Preventive Medicine [[alternative HTML version deleted]] _

[R] two issues

2005-02-03 Thread Dean Sonneborn
y only contains one symbol for both! here's the whole R code statement: dotplot(chemical~adjlogmle| convert*tdnew, data=allrisk , group=rodentx, main="Interspecies Conversion", pch=1:2, auto.key=TRUE, scales = list(tick.number=10), fontfamily = "HersheySans") Thanks,

[R] dotchart background color

2004-11-17 Thread Dean Sonneborn
I'm creating a dotchart but the background color is gray. In fact, when ever I use the Lattice package the background is gray, which prints as black on my non-color printer. How do I change the background color to white? I'm also plotting two groups and would like to use circles and triangles a

[R] x is not a open/high/low/close time series

2004-10-18 Thread Dean Sonneborn
anning to plot some odds ratios with their confidence intervals and the hi-low-close chart should do the job if I can just figure out what the ohlcPlot function is expecting the time series data to look like. Thanks for the help Dean Sonneborn __ [EMAI

[R] graph question

2004-10-12 Thread Dean Sonneborn
I would like to produce a graph which plots a log scale variable on the y-axis but have the tick marks on the y-axis be the non log transformed values that are round like .5, 1, 2, 3, 4 etc. Has anyone done something like this in the past? How did you implement it in the code? Thanks, Dean ___