search for: popophobia

Displaying 9 results from an estimated 9 matches for "popophobia".

2008 Jun 24
4
Find max of a row in data frame (like Excel)
Hi, Here's the data we have: > rs[1:5,] probe_id f1 f2 f3 f4 M A f 1 A_68_P20002076 2 58 0 0 1.51778114 6.344453 59 2 A_68_P20002775 22 8 15 0 0.43419304 5.488819 59 3 A_68_P20005791 43 3 0 0 0.05698666 9.830594 59 4 A_68_P20005805 11 34 0 0 1.71076835 6.624038 59 5 A_68_P20006729 16 44 0 0 0.85498261 6.044229 59 I want rs$f be the max of f1, f2, f3,
2008 May 06
2
Concatenate a vector into a string, only using distinct component
I'm trying to use combine c('a','b','c','a','c') into 'a, b, c', the order does not matter. paste(c('a','b','c','a','c'), collapse=', ') yields 'a, b, c, a, c'. Any idea? -- Regards, Anh Tran [[alternative HTML version deleted]]
2008 Jun 19
2
Draw curve for histogram
Hi all, What parameter should I feed to the hist function to draw a line, not bar graph for a histogram? Smoothed line would be great too. I've looked at curve() for normal distribution but it's not what I need. I need some curve on top of the histogram (fit to the actual data). Just as a way to illustrate, rather than bargraph. Thanks -- Regards, Anh Tran UCLA NeuroOncology Lab
2008 May 06
2
Print table data on to a plot
Hi, Is there away to print a short table out along side with a plot? I'm thinking about doing a par(mfrow = c(1,2)) Then, the plot is on one side, summary result on the other. Is there any quick way to print out a data.frame in table format? Thanks -- Regards, Anh Tran [[alternative HTML version deleted]]
2008 May 09
1
Rescaling a column in a matrix based on a certain rows
Hi, Let say I have this matrix: > mat<-matrix(cbind(rnorm(20),rnorm(20)), ncol = 2) And I want to rescale values of column [,1] and [,2] using values from row 1 to 5, such that the values of row 1:5 should be rescale to the same amplitude (kinda like take the z-score of population from row 1:5). column 1 and 2 are two different samples need to be compared. I hope I made myself clear
2008 Jun 21
2
Scatter plot transparency
Hi all, I'm putting a few plots together and wondering what format would be best to export a few scatter plots to Illustrator to make a figure. I'm thinking about overlaying some plot in Illustrator, so the export file type has to be transparent for Illustrator (version 10). I tried PNG and TIFF, but it does not seems to have transparency that is recognized by Illustrator (or Photoshop for
2008 May 08
0
Heat map on large sample size
Hey, I'm trying to generate a heat map of 30,000 fragments from probably 5-10 samples. Windows complains about memory shortage. Should I resort to Unix system? Also, if I only plot 1000 fragments out, they can finish it rather fast. 5000 would take more than 10 minutes. I don't know what to expect for 30,000... And on the side note, it seems like R only uses up to 50% of CPU while doing
2008 May 12
5
Format integer
Hi, What's one way to convert an integer to a string with preceding 0's? such that '13' becomes '00000000013' to be put into a string I've tried formatC, but they removes all the zeros and replace it with blanks Thanks -- Regards, Anh Tran [[alternative HTML version deleted]]
2008 May 18
3
Opening more than 1 R console in Windows
Hi all, I recently found out that R does not utilize fully the Duo Core capability when you only run one instance of R. I did some number crunching today and it seems that if I only open 1 R console, it uses 50% of my CPU (either 50-50 or 100-0 on 2 cores). Then, I open the second instance and divide the work into two parts, and run them parallelly, they seems to utilize 100% of my CPU. So, my