Capilano Pacific Trail to Cleveland Dam

   Capilano Pacific Trail We went on Capilano Pacific Trail today and the destination is Cleveland Dam. During the trip, we pass by Capilano River Regional Park. The main conclusion of this trip is that it is an easy trail but with a lot of fun and different views which I have proved to you by my pictures:) Difficulty: Easy Time: we used 3 hours for a round trip Dog Friendly: Yes. A lot of places does not even require you to put leash on dogs. The dogs can run very happily there. Public Transit: Yes, we can take 250/250a … Continue reading Capilano Pacific Trail to Cleveland Dam

How to read amino acid or dna sequences in the fasta format in R

The easiest way to do it is to use “seqinr” package. There is some example code below Even if we save the sequences in the .txt format, we can still use read.fasta(). The resulting data as a list in r with length equal to the number of sequences in the fasta file. If you are reading DNA sequences, another option is to use “ape” package in R and use read.dna() function.   Continue reading How to read amino acid or dna sequences in the fasta format in R

Multiple line plots with different range of x-axis with ggplot2

In this post, I am going to explain how to plot two lines within a same plot with different range of x-axis in ggplot2. When we search online, there are many example codes that provide a solution to the dual line plots sharing same x-axis, but there is not much to refer to with different range of x-axis. We would like to plot y with respect to x for this two datasets within a same figure. We noticed that the range of x-axis in the two plots are different. The following code provides a remedy for that. Continue reading Multiple line plots with different range of x-axis with ggplot2