Re: [R] Help using gPath

2007-08-10 Thread Emilio Gagliardi
haha Paul, It's important not only to post code, but also to make sure that other people can run it (i.e., include real data or have the code generate data or use one of R's predefined data sets). Oh, I hadn't thought of using the predefined datasets, thats a good idea! Also, isn't this

Re: [R] Help using gPath

2007-08-09 Thread Emilio Gagliardi
Hi Paul, I'm sorry for not posting code, I wasn't sure if it would be helpful without the data...should I post the code and a sample of the data? I will remember to do that next time! grid.gedit(gPath(ylabel.text.382), gp=gpar(fontsize=16)) OK, I think my confusion comes from the notation

[R] Help using gPath

2007-08-08 Thread Emilio Gagliardi
Hi everyone,I'm trying to figure out how to use gPath and the documentation is not very helpful :( I have the following plot object: plot-surrounds:: background plot.gTree.378:: background guide.gTree.355:: (background.rect.345, minor-horizontal.segments.347, minor-vertical.segments.349,

Re: [R] ggplot2 qplot and add

2007-08-04 Thread Emilio Gagliardi
Dear Hadley, You are a machine! Its way past late you should be relaxing man ;) Here is what I hacked together. My question was how to pass in the colour used to fill the dot/legend and the label for the legend entries. test - qplot(x,y, data=some.data, size=chop(variance, n=4),

[R] ggplot2 qplot and add

2007-08-02 Thread Emilio Gagliardi
Hi there, I have some simple frequencies I want to plot into one graph. I had it working, and now I can't figure out whats going wrong. All the data is stored in a dataframe, and i finally managed to order the factor correctly! Each column is a variable and contains integers for the same set of

Re: [R] ggplot2 qplot and add

2007-08-02 Thread Emilio Gagliardi
Hi Thierry and Hadley, Thanks for your help! I got it working almost 100% to what I want. My last questions are simple I think ;) 1) How can I pass a label to colour and assign the color at the same time? The auto-selection of colors is awesome for learning, but makes it harder to see some

[R] how to sort dataframe levels

2007-07-31 Thread Emilio Gagliardi
Hi everyone, I've been bashing my head against this for days now, and can't figure out what to do. I have the following dataframe headerappetitive stimulusaversive stimuluschaining contingencydiscriminative stimulusextinctionintermittent reinforcementnegative