Description Usage Arguments Value Examples
View source: R/p03_distribution_plot_functions.R
Generate XY scatter plot for two sets
1 2 3 4 5 6 7 8 9 | plot_scatter(
df,
sx,
sy,
title = "Scatter plot",
colorCol = "Density",
trans = "identity",
pseudoCount = NULL
)
|
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 |
a ggplot object
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.