README.md

package-r-nextrnaColors

Limited package to enable easy plotting of data using ggplot2 and NextRNA corporate colors. Code from here.

Colors:

Main functions:

scale_color_nextrna() and scale_fill_nextrna()

Usage examples:

ggplot(data = lin28_df, aes(x = exp, y = estimate, label = primary_diagnosis)) + 
  geom_point(aes(color = version), alpha = .8) + scale_color_nextrna()

ggplot(data = lin28reg, aes(label = primary_diagnosis)) +
 geom_col(aes(x = as.character(mirna_id), y = estimate, fill = csd_status)) +
 scale_fill_nextrna()

# need discrete = F to create continuous color scale for heatmap
ggplot(cor_df, aes(x = let_version, y = primary_diagnosis, label = p.value)) + 
  geom_raster(aes(fill = estimate)) + scale_fill_nextrna(discrete = F)


NextRNAtx/package-nextrnaColors documentation built on April 14, 2023, 7:42 a.m.