[R] Loop Function to Create Multiple Scatterplots

2018-05-20 Thread STEVEN MANCINI
Hello, I am trying to create multiple scatter plot graphs. I have 1 independent variable (Age - weeks post conception) and 18 dependent variables ("Gene n" Expression) in one csv file. Is there a way to set up a looped function to produce 18 individual scatterplots? At the moment, I am writing the

[R] S4 class slot type S4 class

2018-05-20 Thread Glenn Schultz
All, I am considering creating an S4 class whose slots (2) are both S4 classes.   Since an S4 slot can be an S3 class I figure this can be done.  However, the correct syntax of which I am unsure.  Reviewing the docs I have come to the following conclusion: SetClass('myfoo',                   s

Re: [R] Scale

2018-05-20 Thread Bert Gunter
You can draw your own axes. Set las =1. See ?par plot(survfit(Y~addicts$clinic), fun="cloglog", las=1) Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic stri

Re: [R] Scale

2018-05-20 Thread Duncan Murdoch
On 20/05/2018 3:32 PM, Ed medicine via R-help wrote: I would like to get horizontal numbers on the both axes: X and Y. I got horizontal numbers only on the Y axis when adding las=2, How to obtain a horizontal orientation for number on scale also for the X axis (now they are vertical)? Here is my

[R] Scale

2018-05-20 Thread Ed medicine via R-help
I would like to get horizontal numbers on the both axes: X and Y. I got horizontal numbers only on the Y axis when adding las=2, How to obtain a horizontal orientation for number on scale also for the X axis (now they are vertical)? Here is my code: plot(survfit(Y~addicts$clinic), fun="cloglog", l

Re: [R] How to average values from grid cells with coordinates

2018-05-20 Thread Jim Lemon
Hi lily, It's not too hard to do it using dataframes. Getting the indexing right is usually that hardest part: # these values are the centers of the black cells lat<-rep(28:38,11) lon<-rep(98:108,each=11) pop<-sample(80:200,121) # just use the data.frame function blackcells<-data.frame(lat=lat,lon