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

[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] 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\)
the best, Phil Smith CDC -Original Message- From: Smith, Phil (CDC/CCID/NCIRD) Sent: Thu 2/22/2007 2:56 PM To: r-help@stat.math.ethz.ch Cc: Subject: question about boxplot Here is a questi