[R] switching y-axis to x-axis for qqmath

2011-02-04 Thread Anderson, Chris
This is the qqmath example from the lattice package. I added the scales to the example. I would like to switch the axis and not sure how? Meaning I would like the height on the x-axis and the probability on the y-axis. Will you show me the correct syntax for this switch thanks. qqmath(~

[R] syntax for highlighting table rows and columns using R plugin for spss

2010-07-09 Thread Anderson, Chris
I am using the R plug-in for spss 18, and would like to know if there is any R code that will highlight and bold rows (particularly the Totals row) within an spss table. The current option that spss has is to use a python plug-in which doesn't seem to work on my windows 7 machine. Chris

Re: [R] help color coding map in R

2010-05-18 Thread Anderson, Chris
, map = us.map, breaks = class$brks, colramp = colorRampPalette(plotclr)) -Felix On 18 May 2010 02:37, Anderson, Chris chris.ander...@paradigmcorp.com wrote: Flex, I apologize for not sending the data. I have attached the Rdata set and an excel version and I've attached the graph. I have

[R] help color coding map in R

2010-05-14 Thread Anderson, Chris
I am trying to create a map with selected states based on highest to lowest mean cost. The following code properly selects the correct states, and the legend is properly color coded with ranges, but the colors per range does not match the state colors. I need help getting the state colors to

[R] help overlay scatterplot to effects plot

2010-05-04 Thread Anderson, Chris
I have a process where I am creating a effects plot similar to the cowles effect example. I would like to add the point estimates to the effects plot, can someone show me the correct syntax. I have included the R effects example, so you can show me the correct syntax. Thanks mod.cowles -

[R] Help changing position of x-axis

2010-01-22 Thread Anderson, Chris
I have plotted the dataset below into a stripchart, which gives me the correct graph. However, my x-axis labels are to long to display hortizonal. I would like to display the labels at a 45 degree angle so that all of the labels are displayed. I have used the following text+par code on other

[R] Help formating data to display commas

2010-01-07 Thread Anderson, Chris
I'm using the following code to create quartile intervals of my dataset and it is working like it is suppose too. In my final output of the data I would like currency amounts to be displayed with commas. I have not found an option either through FormatC or sprintf that will display the data

Re: [R] Help formating data to display commas

2010-01-07 Thread Anderson, Chris
When I try this all I get is NULL Chris Anderson Data Analyst Medical Affairs wk: 925-677-4870 cell: 707-315-8486 Fax:925-677-4670 -Original Message- From: Henrique Dallazuanna [mailto:www...@gmail.com] Sent: Thursday, January 07, 2010 11:45 AM To: Anderson, Chris Cc: r-help@R

[R] Supressing Scientific Notation

2009-12-14 Thread Anderson, Chris
I'm trying to display my deciles without scientific notation, but have not found an option that will allow me to do so. According to web searches, the options(scipen=999) should remove scientific notation, but it seems not too. Does this option work with quantcut function? Is there any other

[R] option for multi thread or multi core machines

2009-12-10 Thread Anderson, Chris
I notice that R basic installation does not take advantage of multi-thread or multi-core processors. Is there an option for multi-threaded processors? I currently run all of my analysis on thinkpad laptop and most processing is very quick, however, when I run stepAIC with interaction terms it

[R] Need help creating multiple datasets using loops or vectorization

2009-12-10 Thread Anderson, Chris
I am trying to create multiple dataset by group like the following using either a loop or vectorization: vocallGp1-subset(vocallsub, Group==1) vocallGp2-subset(vocallsub, Group==2) vocallGp3-subset(vocallsub, Group==3) vocallGp4-subset(vocallsub, Group==4) vocallGp5-subset(vocallsub, Group==5)

[R] need help formating plot axis to standard dollar formats

2009-11-13 Thread Anderson, Chris
I create a lot of plots with a dollar amount as the y-axis. How do I change the formatting so comma and $ are in place. Like $1000,000 or to use common dollar abbreviations like 100K? Chris Anderson Data Analyst Medical Affairs wk: 925-677-4870 cell: 707-315-8486 Fax:925-677-4670 This