Description Usage Arguments Details Value See Also
For the encircling, we will use the values of X and Y to determine
the coordinates for the circle that will either capture all values, or those
within the quantile defined by which_quant
.
Multiple circles may be drawn based on groups provided via separate_by
.
1 2 | fx.get_circle_df(in.df, X = "x_axs", Y = "y_axs", separate_by = NULL,
keep_quant = 1)
|
in.df |
data.frame that is used for making the original plot. |
X |
name (or integer index) of the column of in.df that contains the values to be used for determining the x axis coordinates (default: "x_axs"). |
Y |
name (or integer index) of the column that contains the values to be used for determining the y axis coordinates (default: "y_axs"., |
separate_by |
factor that will be used to split the values of X and Y
into distinct groups (e.g., by "condition"); if NULL (default), |
keep_quant |
a number between 0.5 and 1 to define the max. quantile for
any value of |
Sometimes, it is useful to remove outlier coordinates before drawing
the circles. If keep_quant= 1
, the output will be exactly the content
of in.df
.
keep_quant
should be a number between 1 and 0.5, usually you will want
to use something between 0.95 and 1.
Integer indeces for X and Y must be given in proper integer notation
(e.g., 1L) so that is.integer(X)
passes.
data.table, most likely a subset of the in.df, depending on the setting
of which_quant
. This data.table can be used with ggalt::geom_encircle.
plot_reduced_dim.df
,
scABC2::generate.DimRedPlot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.