Blog Archives

k-mean clustering + heatmap

October 10, 2011
By

If you want more info about clustering, I have another post about "Clustering analysis and its implementation in R". Here is the link:  http://onetipperday.blogspot.com/2012/04/clustering-analysis-2.html------------Several R functions in this...

Read more »

display time series data in R

August 19, 2011
By
display time series data in R

Thanks to the Revolutions blog, several things learned here:1. R code for heat calendar2. generate SVG from R3. pretty-R toolOK. Let's explain it by plotting the fund WASCX (IVY ASSET STRATEGY FUND CLASS C) from 2009-03-14:# source code of calendarHeat...

Read more »

One R Tip A Day: How to draw a plot with two Y axises and one X axis

August 17, 2011
By
One R Tip A Day: How to draw a plot with two Y axises and one X axis

One R Tip A Day: How to draw a plot with two Y axises and one X axisplot(1:10)par("usr")# 0.64 10.36 0.64 10.36# Now resetting y axis' usr coordinates:par(usr=c(par("usr"), 101, 105))points(1:5, 105:101, col="red")axis(4)par(mar=c(4, 5, 4, 5) ...

Read more »

An efficient way to do dataset intersection

July 27, 2011
By

The main message is to use "match" to get index of needed rows and then get the rows by the index, instead of using the row names to select, which is much slower. Here is example:In example above, we know that the same values of column 2nd have same values of columns from 4th to the end. So, instead...

Read more »

Interesting packages of new BioC2.7

November 1, 2010
By

NuPoP Nucleosome positioning predictionMulcom Differential expression and false discovery rate calculation through multiple comparisonontoCAT Ontology parsingBHC Bayesian Hierarchical ClusteringiSeq Bayesian Hierarchical Modeling of ChIP-seq...

Read more »