Quickly vizualise MDS and NMDS objects and build customs plots using the layers. See examples.
plot_NMDS(
x,
f = NULL,
axes = c(1, 2),
points = TRUE,
points_transp = 1/4,
chull = TRUE,
chullfilled = FALSE,
labelgroups = FALSE,
legend = TRUE,
title = "",
box = TRUE,
axesnames = TRUE,
palette = pal_qual
)plot_MDS(
x,
f = NULL,
axes = c(1, 2),
points = TRUE,
points_transp = 1/4,
chull = TRUE,
chullfilled = FALSE,
labelgroups = FALSE,
legend = TRUE,
title = "",
box = TRUE,
axesnames = TRUE,
palette = pal_qual
)
factor specification to feed fac_dispatcher
numeric
of length two to select PCs to use
(c(1, 2)
by default)
logical
whether to draw this with layer_points
numeric
to feed layer_points (default:0.25)
logical
whether to draw this with layer_chull
logical
whether to draw this with layer_chullfilled
logical
whether to draw this with layer_labelgroups
logical
whether to draw this with layer_legend
character
if specified, fee layer_title (default to ""
)
logical
whether to draw this using layer_box
logical
whether to draw this using layer_axesnames
color palette
to use col_summer
by default
Other grindr:
drawers
,
layers_morphospace
,
layers
,
mosaic_engine()
,
papers
,
pile()
,
plot_LDA()
,
plot_PCA()
# NOT RUN {
### First prepare an NMDS object
x <- bot %>% efourier %>% NMDS
plot_NMDS(x)
plot_NMDS(x, ~type) %>% layer_stars() %>% layer_labelpoints()
### Same on MDS object
x <- bot %>% efourier %>% MDS
plot_MDS(x)
plot_MDS(x, ~type) %>% layer_stars() %>% layer_labelpoints()
# }
Run the code above in your browser using DataLab