create_count_plot: Make scatterplot of normalised counts

View source: R/countPlot.R

create_count_plotR Documentation

Make scatterplot of normalised counts

Description

Make scatterplot of normalised counts

Usage

create_count_plot(
  count_data,
  x_var,
  colour_var,
  colour_palette,
  shape_var = NULL,
  shape_palette = c(21:24),
  debug = FALSE
)

Arguments

count_data

tibble::tibble() of count data joined to sample info

x_var

character column name to use as the X variable

colour_var

character column name to use as the colour variable

colour_palette

character named vector of colours

shape_var

character column name to use as the shape variable. It can be NULL in which case the points are all circles

shape_palette

numeric vector of numbers for the shapes

debug

logical print debugging info

Value

a ggplot2::ggplot() object

Examples


create_count_plot(counts_for_gene, x_var = 'condition', colour_var = 'treatment',
colour_palette = c('yellow', 'blue', 'red'), shape_var = 'timepoint')


richysix/rnaseqVis documentation built on Feb. 12, 2024, 1:37 p.m.