Re: [R] Problem to sort factor

2007-07-17 Thread Arne Brutschy
Hi, hadley wickham wrote: h Does this get you started? h x - factor(c(a, b, c)) h factor(x, levels=c(c,b,a), labels=c(cc,bb, aa)) hmm, not really. I simply don't seem to get the concept of factors here... How do I combine the above code with my dataframe and pass it on to facet_grid??? Thanks

[R] Bug in PDF device when using transparent graphics

2007-07-17 Thread Arne Brutschy
Hello, I think I found a bug when creating graphics on a PDF device using transparency. I'm using ggplots2 like this: comp - ggplot(data, aes(x=Problemsize, y=Fitness)) + geom_smooth(fill=alpha(blue, 0.2), aes(colour=factor(Clustersize)), size=2) Which gives me a curve for each

[R] Problem to sort factor

2007-07-16 Thread Arne Brutschy
Hello, I'm having a problem renaming and sorting the underlying factor of a ggplot2 based plot. Here's my code: ---8-- delta - ggplot(subset(data, Model==c(dyn, dl4, dl3)), aes(x=Problemsize, y=Fitness)) + geom_smooth(size=1, color=black, fill=alpha(blue, 0.2))+

Re: [R] Lines connecting the boxes in a boxplot

2007-06-18 Thread Arne Brutschy
Hi, C I' recommend to save the information of your boxplots C Then you have the information that you need about your boxplot C (e.g. the value of the median) and can use segments() to draw C the lines you want. Thanks, works like a charm! Regards, Arne C Arne Brutschy writes: Hello, I'm

Re: [R] Visualize quartiles of plot line

2007-06-17 Thread Arne Brutschy
/16/07, Arne Brutschy [EMAIL PROTECTED] wrote: Hello, I'm currently using a simple plot to visualize some mean values. I'm having ~200 datapoints on the x-axis, each has 10 records. I'm currently plotting only the mean value of each of the datapoints. What I need is a way to visualize

Re: [R] Visualize quartiles of plot line

2007-06-17 Thread Arne Brutschy
this. Regards, Arne h On 6/16/07, Arne Brutschy [EMAIL PROTECTED] wrote: Hello, I'm currently using a simple plot to visualize some mean values. I'm having ~200 datapoints on the x-axis, each has 10 records. I'm currently plotting only the mean value of each of the datapoints. What I need is a way

Re: [R] Visualize quartiles of plot line

2007-06-17 Thread Arne Brutschy
Hi, thanks for your tips - all of them worked. After a bit of fiddling, I managed to get what I wanted. hadley wickham wrote: h You might want to read the introductory chapters in the ggplot book, h available from http://had.co.nz/ggplot2, which will give you more of a h background. Please let

[R] Lines connecting the boxes in a boxplot

2007-06-16 Thread Arne Brutschy
Hello, I'm currently using a boxplot to visualize data for three different models. As I have three models, I'm plotting three parallel boxplots for each factor. This works fine - what I need now is a line connecting the medians of each boxplot of each model. I want to do this in order to

[R] Visualize quartiles of plot line

2007-06-16 Thread Arne Brutschy
Hello, I'm currently using a simple plot to visualize some mean values. I'm having ~200 datapoints on the x-axis, each has 10 records. I'm currently plotting only the mean value of each of the datapoints. What I need is a way to visualize the quartiles/error/whatever of these points. I thought

[R] Special characters on axis lables

2007-05-21 Thread Arne Brutschy
Hello, is there a way to specify special characters as a axis label? I need to have a tick marking the infinity in my plot... Is there a way? Or possibly a way to include latex-style formulas? Thanks in advance, Arne __ R-help@stat.math.ethz.ch