[R] color heatmap according to value ranges

2015-02-06 Thread N.Hubner
Probably the simplest thing there is, but I can't get it to work: Example for my data: a - c(1,1,1,2,2,2,3,3,3) b - c(1,2,3,1,2,3,1,2,3) c - c(1,2,3,4,5,6,7,8,9) df - data.frame(cbind(a,b,c)) I create a heat map with c being the values: ggplot(df, aes(df$a, df$b, fill = df$c)) +

[R] combinatorics for minimal set of samples

2014-03-14 Thread N.Hubner
Dear all, This is something for the combinatorics freaks amongst you (which I am certainly not :-). I do the following problem to solve and was wondering if this can be easily done using R: I have a set of, let's say, 10 variables: n(varibale) = 10 e.g. var - c(a,b,c,d,e,f,g,h,i,j)

[R] making a barplot with table of experimental conditions underneath (preferably ggplot2)

2013-11-13 Thread N.Hubner
Dear all, my data looks the following: df - data.frame (experiment=c(E1,E2,E3,E4), mean = c(3,4,5,6), stdev=c(0.1,0.1,0.05,0.2), method = c(STD,STD, FP, FP), enzyme =c (T,T/L,T,T/L), denaturation=c(U,U,0.05%RG, 0.1%RG)) I would like to make a bar plot with standard deviation which I

Re: [R] two lines in axis title combined with 'substitute' command

2013-01-04 Thread N.Hubner
Hi! Thanks a lot for your help! I now do have exactly the plot that I wanted! (I also realized that I have to use the 'text' command outside of the plot function; beginners mistake :-) Cheers, Nina __ Dr. Nina Hubner scientist quantitative

[R] two lines in axis title combined with 'substitute' command

2013-01-03 Thread N.Hubner
Hello, I want to have the x-axis title of my plot in 2 lines, centered: experiment 1: log2(Ratio H/L) I know that in principle that works with '\n'. However, I am also using the 'substitute' command for my axis title. However, it does not make a new line. What I have so far: logbase - 2 test