Description Usage Arguments Value Author(s)
View source: R/plot_compare_a_pair_vectors.R
The plot function to compare a pair of vectors. One of the main usages is to check how homogeneous is the data generated on multiple plates. The points are colored by group.
1 2 3 4 5 6 7 8 9 10 11 12 13 | plot_a_pair_vectors(
x,
y,
grp_id,
square = TRUE,
log = "xy",
main = paste("Scatter plot of", xlab, "&", ylab),
xlab = deparse(substitute(x)),
ylab = deparse(substitute(y)),
col_ea_grp,
...,
legend_arg = list(x = "bottomright")
)
|
x |
a vector of numerical values |
y |
a vector of values that are very likely correlated with values in 'x' |
grp_id |
a vector that has the group IDs of which each will be plotted
in different color |
square |
whether the ranges of the x- and y-axes in plot should same or not |
log |
which coordinates are in log scale. Same as |
main, xlab, ylab |
same as the ones for |
col_ea_grp |
color of each group given in |
... |
any arguments that pass to |
legend_arg |
a list of parameters to be used in adding a legend. If
|
A plot is generated and a "list"
of x- and y- coordinate
limits is returned.
Mun-Gwan Hong <mun-gwan.hong@scilifelab.se>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.