axis_plot | R Documentation |
Creates a lollipop chart of species contributions to ordination axes with scalable point size
axis_plot(
mod,
axis = 1,
sides = "both",
n = 10,
species = NULL,
size_preset = "device",
point_cols = c("#f8766d", "#00ba38"),
xlab = NULL,
ylab = NULL,
sp_names = NULL,
italicize_sp_names = FALSE,
point_size = NULL,
text_col = "white",
map_size = FALSE,
break_interval = NULL
)
mod |
|
axis |
The ordination axis for which the chart should be made for |
sides |
Character vector specifying which columns should be shown. Options: |
n |
Number of columns (=species) to show |
species |
A character vector of species entries to be forced to the plot. The remaining of species will be taken from |
size_preset |
Character. Define the size preset of the plot. Options: |
point_cols |
a character vector of length 2 specifying the colors for negative and positive species scores respectively. |
xlab |
X-axis label |
ylab |
Y-axis label. If |
sp_names |
Optional data frame specifying the species names to be used in the plot. The first column has to specify the species names used in the |
italicize_sp_names |
Logical. Should species names be italicized? |
point_size |
Single number specifying the size for "lollipop heads". |
text_col |
Character. Color of text for the points. The text spcifies species contributions to the axis in percentages. |
map_size |
Logical. Should point size be mapped to species contributions to the axis? |
break_interval |
Single number specifying the interval to be used for x-axis. |
Mikko Vihtakari
library(vegan)
data(dune)
axis_plot(rda(dune), break_interval = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.