[R] function in R for my exercise

2012-01-04 Thread Thomthom
Hi R helpers! I have a question. I'm trying to create a function for an exercise. Here are the arguments I should include: x and y are numeric z is a name (plus,minus,multiply,divide) and swap is logical. Here is what the function should do: When z=plus, then x+y is performed and so on for the

Re: [R] function in R for my exercise

2012-01-04 Thread Thomthom
, Thomthom rime.tho...@gmail.com wrote: Hi R helpers! I have a question. I'm trying to create a function for an exercise. Here are the arguments I should include: x and y are numeric z is a name (plus,minus,multiply,divide) and swap is logical. Here is what the function should do: When z=plus

[R] controling text in facets (ggplot2)

2011-10-11 Thread Thomthom
Hi R-helpers! Here is my problem: I have a graph with 3 different facets where there are 3 different regression line. My goal is to mention separately in each facet each equation that describes my lines. So far, I managed to add a line and the same equation to all my facets but that's not

Re: [R] changing label in ggplot

2011-09-19 Thread Thomthom
Hi everyone! Sorry for posting late but my problem is solved! I found a way to do what I had to do ^^ But if you want to know what exactly it was I can update some of my code and data... just let me know! Thanks again for your replies! Thomas -- View this message in context:

[R] changing label in ggplot

2011-09-15 Thread Thomthom
Hi everyone, I'm trying to create a scatterplot (with ggplot2) with different groups and a faceting (see code below... much clearer I think) But when I want to change the color label to something else using the scale_colour_manual function (based on http://had.co.nz/ggplot2/scale_manual.html),

[R] expression() and axis labels

2011-07-16 Thread Thomthom
^ is considered as a power, whereas I would like to have only the + and the -1 as a power. Is there a way to obtain what I want? somehow to split up the expression so I don't get everything put at the power of NH4. I already thank you guys for your help!!! Thomthom -- View this message in context: http

Re: [R] expression() and axis labels

2011-07-16 Thread Thomthom
familiar with forums ^^) Have a good one! Thomthom -- View this message in context: http://r.789695.n4.nabble.com/expression-and-axis-labels-tp3672050p3672221.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing