plot_2D | R Documentation |
Plot the fit for two dimensions, one against the other. Colour each point (defined as the ratio of sucesses over trail) according to the clustering assignments.
plot_2D(
x,
d1,
d2,
cex = 1,
alpha = 0.3,
cut_zeroes = TRUE,
binning_n = NA,
binning_b = NA,
downsample = Inf,
colors = NA,
bin_params = FALSE
)
x |
An object of class 'vb_bmm'. |
d1 |
The name of the dimension to plot (x-axis). |
d2 |
The name of the dimension to plot (y-axis). |
cex |
Cex of the points and the overall plot. |
alpha |
Alpha of the points. |
binning_n |
This parameter goes with |
binning_b |
This parameter goes with |
downsample |
Maximun number of points to plot. Default is |
colors |
Optional vector of colors, default ( |
bin_params |
If |
cut_zeros |
If |
A ggplot object.
data(fit_mvbmm_example)
# Sample names are "S1" and "S2" for this dataset
plot_2D(fit_mvbmm_example, "S1", "S2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.