[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
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, Davis (530) 754-9516 (voice) (530) 752

[R] subset by two variables

2006-08-29 Thread Dean Sonneborn
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 [[alternative HTML version deleted

[R] trellis in black and white

2006-08-08 Thread Dean Sonneborn
/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 -- Dean Sonneborn, MS Programmer Analyst Department of Public

[R] boxplot

2006-05-17 Thread Dean Sonneborn
, + 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.math.ethz.ch mailing list

[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 Analyst

[R] jpeg or tiff file formats

2006-02-08 Thread Dean Sonneborn
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, Davis (530) 754-9516

[R] footnote in postscript lattice

2006-01-26 Thread Dean Sonneborn
”, 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 Department of Public Health Sciences University

[R] multiple lowess line in one plot

2006-01-04 Thread Dean Sonneborn
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.ch mailing list https://stat.ethz.ch

[R] gee models summary

2005-09-28 Thread Dean Sonneborn
? 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! http

[R] reading SAS data files

2005-09-26 Thread Dean Sonneborn
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 looking for it or does it need to be somewhere else? Thanks, -- Dean Sonneborn Programmer

[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 Sonneborn

[R] scatter plot

2005-08-11 Thread Dean Sonneborn
){ 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 of California, Davis (916) 734-6656 [[alternative

[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 deleted

[R] skip missing values in plots

2005-02-10 Thread Dean Sonneborn
) Dean Sonneborn M.S. Public Health Sciences * University of California, Davis 916 734-6656 * formerly Epidemiology Preventive Medicine [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

[R] two issues

2005-02-03 Thread Dean Sonneborn
! 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, Dean Sonneborn M.S. Public Health Sciences * University of California

[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

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

2004-10-18 Thread Dean Sonneborn
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 __ [EMAIL PROTECTED] mailing

[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