Skip to content

Functions for plotting based on ggplot2

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

sarahbonnin/ggplot2Functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Functions for plots useful in HTS data analysis, using ggplot2 R package

What is done and what is pending

  • PCA from a matrix or a DESeq2 object
  • Density plot from a data frame or a matrix
  • Hierarchical clustering from a matrix or a DESeq2 object
  • Dotplot for counts / gene from a matrix or a DESeq2 object
  • Heatmap from a matrix or a DESeq2 object

Install package

library(devtools)
install_github("sarahbonnin/ggplot2Functions")

Run functions

Principal component analysis (function ggplot2_pca)

Example data set:

dat <- matrix(rnorm(1200), ncol=6)

Run Function:

ggplot2_pca(dat, first_pc=1, second_pc=3, samples=1:6, expGroups=rep(c("A", "B"), 3), title="test")

Density plot (function ggplot2_density)

Example data set:

dat <- data.frame(A=rnorm(200), B=rnorm(200))

Run Function:

ggplot2_density(dat, title="test")

Hierarchical clustering / dendrogram (function ggplot2_dendrogram)

Example data set:

dat <- matrix(rnorm(1200), ncol=6)

Run Function:

ggplot2_dendrogram(dat, samples=1:6, expGroups=rep(c("A", "B"), 3), title="test")

Dot plots

Example data set:

dat <- matrix(rnorm(6), ncol=2, dimnames=list(c("A", "B", "C"), 1:2))

Run Function:

ggplot2_dotplot(dat, genes=c("A", "C"), samples=c("sample1", "sample2"))

About

Functions for plotting based on ggplot2

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages