plot_scatter: Generate XY scatter plot for two sets

Description Usage Arguments Value Examples

View source: R/p03_distribution_plot_functions.R

Description

Generate XY scatter plot for two sets

Usage

1
2
3
4
5
6
7
8
9
plot_scatter(
  df,
  sx,
  sy,
  title = "Scatter plot",
  colorCol = "Density",
  trans = "identity",
  pseudoCount = NULL
)

Arguments

df

dataframe with values two columns for which scatter plot is to be generated

sx

sample 1 column name

sy

sample 2 column name

title

title to be showed on plot

colorCol

column name which should be used for coloring the points

trans

trans argument from ggplot::scale_x_continuous() function. Default: identity

pseudoCount

A small number to be added to the values to avoid log(0) error. Default: NULL

Value

a ggplot object

Examples

1

lakhanp1/chipmine documentation built on March 6, 2021, 9:06 a.m.