Quick Guide for pairheatmap Package

Similar documents
Introduction for heatmap3 package

Basic R QMMA. Emanuele Taufer. 2/19/2018 Basic R (1)

Introduction to R: Day 2 September 20, 2017

Graphics in R STAT 133. Gaston Sanchez. Department of Statistics, UC Berkeley

Objects, Class and Attributes

Introduction to Huxtable David Hugh-Jones

Computing with large data sets

enote 1 1 enote 1 Introduction to R Updated: 01/02/16 kl. 16:10

Will Landau. January 24, 2013

Chapter 7. The Data Frame

Create Awesome LaTeX Table with knitr::kable and kableextra Hao Zhu

Resources for statistical assistance. Quantitative covariates and regression analysis. Methods for predicting continuous outcomes.

Create Awesome LaTeX Table with knitr::kable and kableextra

Advances in integrating statistical inference

Regression Models Course Project Vincent MARIN 28 juillet 2016

Stat 241 Review Problems

getting started in R

WEEK 13: FSQCA IN R THOMAS ELLIOTT

The xtablelist Gallery. Contents. David J. Scott. January 4, Introduction 2. 2 Single Column Names 7. 3 Multiple Column Names 9.

MBV4410/9410 Fall Bioinformatics for Molecular Biology. Introduction to R

The Tidyverse BIOF 339 9/25/2018

Accessing Databases from R

Practical Guide To Cluster Analysis in R

Getting started with ggplot2

This is a simple example of how the lasso regression model works.

grammar statistical graphics Building a in Clojure Kevin Lynagh 2012 November 9 Øredev Keming Labs Malmö, Sweden

R Visualizing Data. Fall Fall 2016 CS130 - Intro to R 1

Metropolis. A modern beamer theme. Matthias Vogelgesang October 12, Center for modern beamer themes

Visualisation. Wolfgang Huber

Handling Missing Values

arxiv: v1 [stat.ml] 17 Aug 2016

Spring 2017 CS130 - Intro to R 1 R VISUALIZING DATA. Spring 2017 CS130 - Intro to R 2

Notes based on: Data Mining for Business Intelligence

MICROSOFT EXCEL Working with Charts

Mathematical Optimization and Data Science Day 1

Package superheat. February 4, 2017

UNSUPERVISED LEARNING IN R. Introduction to hierarchical clustering

Analyzing Genomic Data with NOJAH

Package d3heatmap. February 1, 2018

Package ontologyplot

Visualizing high-dimensional data:

Package assertr. R topics documented: February 23, Type Package

Introduction to R Software

Bar Charts and Frequency Distributions

Making Better Features: Principal Components Analysis and Other Data Transformations

Fall 2016 Exam Review 3 Module Test

Package SC3. November 27, 2017

Applied Clustering Techniques. Jing Dong

Package SC3. September 29, 2018

Install RStudio from - use the standard installation.

Creating a Box-and-Whisker Graph in Excel: Step One: Step Two:

EXCEL SKILLS. Selecting Cells: Step 1: Click and drag to select the cells you want.

Survey Design, Distribution & Analysis Software. professional quest. Whitepaper Extracting Data into Microsoft Excel

What R is. STAT:5400 (22S:166) Computing in Statistics

Package ggdark. R topics documented: January 11, Type Package Title Dark Mode for 'ggplot2' Themes Version Author Neal Grantham

M2T Series Rockers Legend Packet

POWERPOINT Build a Presentation to Remember

Package DiffCorr. August 29, 2016

c122sep2214.notebook September 22, 2014

The HOME Tab: Cut Copy Vertical Alignments

Excel 2013 Intermediate

State your dream system (use the following materials, if you need) Alliance model character year character 4. A/T description character 51

The American University in Cairo. Academic Computing Services. Excel prepared by. Maha Amer

A cell is highlighted when a thick black border appears around it. Use TAB to move to the next cell to the LEFT. Use SHIFT-TAB to move to the RIGHT.

MICROSOFT EXCEL BUILDING GRAPHS

Package comphclust. May 4, 2017

Differential Expression Analysis at PATRIC

KEY TERMS chart chart body Chart Wizard client object legend PDF XPS

Package comphclust. February 15, 2013

Charting 1. There are several ways to access the charting function There are three autolayouts which include a chart.

10 Listing data and basic command syntax

Roadster Thrusters. Set Up and Assumptions. I have attached the charts separately. These notes are my working notes.

COMPUTER TECHNOLOGY SPREADSHEETS BASIC TERMINOLOGY. A workbook is the file Excel creates to store your data.

Lesson 4 Customize the ToolBox

Formatting Values. 1. Click the cell(s) with the value(s) to format.

ADJUST TABLE CELLS-ADJUST COLUMN AND ROW WIDTHS

P3e REPORT WRITER CREATING A BLANK REPORT

Tables Part I. Session 45: Creating Tables Session 46: Modifying the Layout of Tables Session 47: Formatting the Design of Tables. Unit.

Module Memory and Data Locality

Tricking it Out: Tricks to personalize and customize your graphs.

Introduction to SAS and Stata: Data Construction. Hsueh-Sheng Wu CFDR Workshop Series February 2, 2015

The Basics of Plotting in R

7 Control Structures, Logical Statements

Lecture 19: Oct 19, Advanced SQL. SQL Joins dbplyr SQL Injection Resources. James Balamuta STAT UIUC

We will start our journey into Processing with creating static images using commands available in Processing:

Package TROM. August 29, 2016

Vector: A series of scalars contained in a column or row. Dimensions: How many rows and columns a vector or matrix has.

Lab #7 - More on Regression in R Econ 224 September 18th, 2018

Links to Activities ACTIVITY 3.1. Links to Activities

CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010

Data Science and Statistics in Research: unlocking the power of your data Session 3.4: Clustering

Excel Level 1: Beginner. Get started in Excel. Look good with easy formatting. Set out your first Excel calculations. Increase your efficiency

Thomas Hirchak Company Market Report for 10/28/ /21/2017. Page: 1 13:24:34

Using Adobe Contribute 4 A guide for new website authors

Hierarchical Clustering

Clustering. Stat 430 Fall 2011

Computing with large data sets

More Skills 11 Draw Tables and Convert Tables to Text. To complete this document, you will need the following file:

Important Note: Read through the next two bullets completely before proceeding with the next step.

Microsoft Office Excel

Transcription:

Quick Guide for pairheatmap Package Xiaoyong Sun February 7, 01 Contents McDermott Center for Human Growth & Development The University of Texas Southwestern Medical Center Dallas, TX 75390, USA 1 Introduction 1 Parameters 1.1 Data matrix...............................1.1 Examples............................ Dendrogram.............................. 3.3 Row group bar............................ 3.3.1 Examples........................... 3.4 Row/Col names............................ 3.4.1 Examples........................... 4.5 Legend................................. 4.5.1 Examples........................... 4.6 Group options............................. 4.7 Cluster analysis............................ 4.7.1 Examples........................... 5.8 Selected group............................ 5.8.1 Examples........................... 5 1 Introduction Heatmap, as a visualization tool for data matrix, has been widely utilized in data analysis. pairheatmap is an R package to compare two heatmaps and discover links and patterns within and across groups. In the context of biology, group can be defined based on gene ontology or selected gene lists. Parameters The main function for this package is pairheatmap. There are many parameters for this function, including johnsunx1@gmail.com 1

1 3 gear drat cyl qsec mpg carb wt am vs hp disp am vs gear drat cyl hp disp qsec mpg carb wt Maserati Bora Ferrari Dino Ford Pantera L Lotus Europa Porsche 914- Pontiac Firebird Camaro Z8 AMC Javelin Dodge Challenger Toy ota Corona Chrysler Imperial Lincoln Continental Cadillac Fleetwood Merc 450SLC Merc 450SL Merc 450SE Duster 360 Valiant Hornet Sportabout Hornet 4 Drive Volvo 14E Fiat X1-9 Toy ota Corolla Honda Civ ic Fiat 18 Merc 80C Merc 80 Merc 30 Merc 40D Datsun 710 Mazda RX4 Wag Mazda RX4 8 4 3 1 0-1 5 Figure 1: Heatmaps marked with section numbers. 1: Data matrix; : Dendrogram; 3: Row group bar; 4: Row/Col names; 5: Legend; 8: Selected group..1 Data matrix ˆ data1: numeric matrix 1. It is considered as the standard matrix. ˆ data: numeric matrix. Its row order is same as that in data1. Its column order is either same as that in data1 or generated based on separate cluster method. ˆ scale: character. It takes four values: row, col, rowsep, none. It indicates whether or not the data matrix is scaled together or separately in row/column direction. ˆ matdist: the separate distance between two data matrices. Its value is the percent of the column width of the data matrix. If its value is 1, the distance between two matrices is exactly one data column. ˆ matrixbordercol: the color of the data matrix border. ˆ colorstyle: the color style for the matrix cell. It takes four values: s1, s, s3, s4. s1 ranges from blue to red; s ranges from green to red; s3 uses a default color style from R package, pheatmap; s4 ranges from white to black..1.1 Examples pairheatmap(mtcars, mtcars[,1:5], scale="row")

pairheatmap(mtcars, mtcars[,1:5], scale="rowsep") pairheatmap(mtcars, mtcars[,1:5], scale="col") colorstyle="s1") matdist=0.7). Dendrogram ˆ dendrogram: character. It takes three values: row, col, both. It indicates whether or not to draw the row/col/both dendrogram(s). Methods and some codes are from R package: pheatmap..3 Row group bar Two matrices must have same number of row, and they may have different number of columns. So in pairheatmap, only row has been provided with group bar and group options. If you do need to look at columns, you can use t(data) to get transpose of data matrix. ˆ rowgroupcolor: logical value. It takes two values: TRUE, FALSE. It indicates whether or not to draw the row group bar. ˆ rowgroupcolor.choice: character. It works when rowgroupcolor is set as TRUE. The character length must match the unique groups in the rowgroup. If it is not specified, the colorstyle is used as default value..3.1 Examples rowgroup=mtcars$gear, rowgroupcolor=true, rowgroupcolor.choice = rev(c("blue", "orange", "green"))).4 Row/Col names ˆ rownamecolor: character string. It controls the label color of the row ˆ colnamecolor: character string. It controls the label color of the column ˆ rownamefontsize: numeric scalar. It controls the font size of the row ˆ colnamefontsize: numeric scalar. It controls the font size of the column ˆ rownamegroupcolor: character variable. The character length must match the unique groups in the rowgroup. It controls the color of different groups of row names. 3

.4.1 Examples rowgroup=mtcars$gear, rownamefontsize=6, colnamefontsize=6, rownamegroupcolor=rev(c("blue", rownamecolor="blue") "green", "orange")),.5 Legend ˆ legend.pos: character. It takes three values: top, middle, bottom. It controls the position of the legend. ˆ legend.percent: numeric. It takes value from 0 to 1. If its value is 1, the height of the legend will be equal to the height of the heatmap. ˆ legend.fontsize: numeric. It controls the font size of the legend labels..5.1 Examples legend.pos="middle", legend.percent=0.6, legend.fontsize=7).6 Group options This package has group options as, ˆ rowgroup: Row group variable. ˆ orderrowgroup: variable. The default value is NULL. It is the row levels that should be ordered. ˆ groupborder: character. It takes two values: line, rect. It controls the shape of the group border. ˆ groupborder.lwd: numeric. It controls the line width of the groupborder. ˆ groupborder.col: character. It controls the line color of the groupborder..7 Cluster analysis ˆ clustermethod: character. It takes the follow values: ward, single, complete, average, mcquitty, median or centroid. ˆ clustermembers: NULL or a vector. See function: hclust of the package stats for details. ˆ clusterrow: logical. It takes two values: TRUE, FALSE. It indicates whether or not to cluster rows. ˆ clustercol: logical. It takes two values: TRUE, FALSE. It indicates whether or not to cluster columns. 4

ˆ clustercoltogether: logical. It takes two values: TRUE, FALSE (Default value). It indicates whether or not the columns of data matrix follows the same clustering order of that in data matrix 1. If the column number of data matrix is different from that of data matrix 1, only the columns matching those of data matrix 1 are reordered..7.1 Examples clustermethod="ward", clusterrow=false) pairheatmap(mtcars, cbind(mtcars, mtcars), clustercoltogether=true).8 Selected group ˆ groupborder.selectlist: a list. It controls which group to be selected. It includes four components, xgroup.start, xgroup.end, ygroup.start and ygroup.end. The selected groups will be drawn with the same graphical parameters as groupborder..8.1 Examples pairheatmap(mtcars, cbind(mtcars, mtcars), groupborder.selectlist= list(xgroup.start=c(,7), xgroup.end=c(4,9), ygroup.start=c(3,30), ygroup.end=c(10,3) )) 5