Skip to content

4_Data visualization

Olivia Waltner edited this page Mar 31, 2023 · 8 revisions

We believe that data should be presented beautifully and be made easy to interpret. In that, colors should be distinct yet harmonious. Further, each figure you make should use the appropriate method of representation.

Enhanced seurat plotting

scCustomize

scPubR

Methods of single cell data visualization

Heatmaps

Heatmaps are widely used to present matrix based data. Seurat and monocle do not provide simple methods to create heat maps, all though they are frequently used in publications. Below are tutorials and example code for single cell and pseudobulk heat maps.

Heatmap basics

Single Cell Heatmap

Bar Plots

Colors

Our package viewmastR provides a helpful function to generate beautiful and distinct colors quickly.

``` cluster_cols <- viewmastR::sfc(n=10, scramble = F)``

We typically use these color palettes for different assays

   rna_cols <- paletteContinuous(n=8)[c(1:3, 6:8)]
   atac_cols <- paletteContinuous(set = "blueYellow")

   pal<- rev(mako(n=9))
   pal<-pal[1:8]
   pal<-c("#ffffff", pal)
   chromvar_cols<-pal
   
   adt_cols <- paletteContinuous(set = "whiteBlue")
   pseudotime_cols<- viridis::plasma(n=10)
   tcr_cols <- c("gray90", rev(brewer.spectral(n =5)))

   t <-BuenColors::jdb_palette("brewer_spectra")
   multiome_cols <- c(t[2],t[3], "#e5e6e1", t[7],t[9])

Clone this wiki locally