[R] question about boxplot

2007-02-22 Thread Smith, Phil \(CDC/CCID/NCIRD\)
Here is a question from an old guy: I want to use the boxplot function as follows: boxplot( p.prop ~ R + bins ) This command makes nice boxplot for the factor R crossed with the factor bins. I am having alot of trouble getting control of the labels on the X axis. I want to control it

[R] controling axes on boxplot() thanks to ST, JvdH, MK

2007-02-23 Thread Smith, Phil \(CDC/CCID/NCIRD\)
, tick=TRUE , cex.axis = .8 , las=2 ) axis( side = 2 , at = seq(0,1,.1) , labels = seq(0,1,.1) ) My thanks to Steven Tucker, Joerg van den Hoff, and Michal Kubovy for their suggesions All the best, Phil Smith CDC -Original Message- From: Smith, Phil (CDC/CCID

[R] Please help with legend command

2007-07-04 Thread Smith, Phil (CDC/CCID/NCIRD)
Hi R-ers: I'm drawing a plot and have used different line types (lty) for different race/ethnicity groups. I want a legend that explains what line types correspond to the different race/ethnicity groups. I used the following code: legend( 1992 , 42 , c(Hispanic , non-Hispanic white (NHW) ,

[R] state map question

2007-08-23 Thread Smith, Phil (CDC/CCID/NCIRD)
Hi R-Help: I want to produce a map of the US with different colors for selected states. I installed the map package, and then used: library(maps) I can see that by using map( 'state' ) you get the state boundaries, also. How do I fill in different colors for the different states? I see