Re: [R] How do I plot geoms in parallel in ggplot

2010-05-06 Thread Charlotte Wickham
You'll have to reshape your data so that each row corresponds to a single subject, time and measurement. I.e. something like: SubjTime variable value 11Height9 11Weight 4 11WBC 4 11Plt

Re: [R] ggplot2 legend text....a basic question

2009-09-14 Thread Charlotte Wickham
> a) How to change the text  in the legend (for example, "number" instead of > "n"). Use: scale_size("number") > b) How to avoid having a  legend for the polygon? Don't include the value for alpha inside aes (you want to set it as opposed to mapping it). So, ggplot(mydata, aes(x, y)) + geom_poi

Re: [R]

2009-01-09 Thread Charlotte Wickham
>> (2) mathematica has a term (%) that when typed means the last returned >> value, so > % + 1 say would return the last outputted value +1 .is there >> an R equivalent please? > > I don't think so - you need to assign that value to something to be able > to reuse it. .Last.value Charlotte ___

Re: [R] Matrix: Problem with the code

2009-01-09 Thread Charlotte Wickham
One of those more elegant ways: outer(x, 1:p, "^") Charlotte On Fri, Jan 9, 2009 at 4:24 PM, Sarah Goslee wrote: > Well, mat doesn't have any dimensions / isn't a matrix, and we don't > know what p is supposed to be. But leaving aside those little details, > do you perhaps want something like th