week 13, lecture 26

19
Practical Bioinformatics for Life Scientists Week 13, Lecture 26 István Albert Bioinformatics Consulting Center Penn State

Upload: others

Post on 20-Jun-2022

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Week 13, Lecture 26

Practical Bioinformatics for Life Scientists

Week 13, Lecture 26

István Albert

Bioinformatics Consulting CenterPenn State

Page 2: Week 13, Lecture 26

Visualizing high dimensionality data

by Hadley Wickham: http://had.co.nz/

There is nothing like it in any programming environment!

Parts of this presentation follow the tutorial of ggplot2

Page 3: Week 13, Lecture 26

Getting started with ggplot2

http://had.co.nz/ggplot2/book/qplot.pdf

We will start out with example plots from this manual

Then at the end wegenerate a peak distribution plotaround gene starts sites.

Page 4: Week 13, Lecture 26

Install ggplot2

Page 5: Week 13, Lecture 26

diamonds.txt (data comes with ggplot2)

Page 6: Week 13, Lecture 26

NOTEFor the next few slidesI will be changing only

line 10

(sometimes we use alldata or just the small

data)

Page 7: Week 13, Lecture 26
Page 8: Week 13, Lecture 26
Page 9: Week 13, Lecture 26
Page 10: Week 13, Lecture 26
Page 11: Week 13, Lecture 26
Page 12: Week 13, Lecture 26

ggplot2 concepts

• geometry what plot looks like

• faceting how many plots/panels

• statistics transformation on the data

• positioning fine tunes locations in the plot

• scales maps data to an x,y coordinate

Page 13: Week 13, Lecture 26

Faceting - multiplots

Page 14: Week 13, Lecture 26

Faceting and shapes and colors

Page 15: Week 13, Lecture 26

scripts are in supporting data located in the 26.tar.gz file on the website

Page 16: Week 13, Lecture 26
Page 17: Week 13, Lecture 26

Recall intersecting peaks with genes from the Chip-Seq lecture. We needan R script to prepare the data for plotting. Code included in this week’s download

Page 18: Week 13, Lecture 26
Page 19: Week 13, Lecture 26

Homework 26

Generate four plots with ggplot2 that demonstrate one ore more features including:

– histograms

– shapes

– colors

– faceting