Description Usage Arguments Value Examples
View source: R/p03_QC_replicate_correlation.R
Correlation plots for numeric data
1 2 3 4 5 6 7 8 | compare_replicates(
data,
rep1Col,
rep2Col,
value = "FPKM",
trans = "identity",
pseudoCount = 0
)
|
data |
A dataframe |
rep1Col |
column name for replicate 1 |
rep2Col |
column name for replicate 1 |
value |
A character name for the value. Default: FPKM |
trans |
trans argument from ggplot::scale_x_continuous() function. |
pseudoCount |
A pseudo count to avoid log(0) = Inf error. All values less than this number will be set to this number in XY scatter plot. Default: 0 |
A list with following elements is returned.
data: plot data used for plotting
figure: A combined figure generated by ggpubr::ggarrange
plots: Individual ggplot list for each plot.
table: a ggtable
object for quantile stats
density: a FPKM density plot for both replicates
scatter: A list with two scatter plot objects: value, rank
corrVariation: A line plot showing changing correlation with quantile subset of data.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.