View source: R/plot_functions.R
biplot_pq | R Documentation |
Graphical representation of distribution of taxa across two samples.
biplot_pq(
physeq,
fact = NULL,
merge_sample_by = NULL,
rarefy_after_merging = FALSE,
inverse_side = FALSE,
left_name = NULL,
left_name_col = "#4B3E1E",
left_fill = "#4B3E1E",
left_col = "#f3f2d9",
right_name = NULL,
right_name_col = "#1d2949",
right_fill = "#1d2949",
right_col = "#1d2949",
log10trans = TRUE,
nudge_y = c(0.3, 0.3),
geom_label = FALSE,
text_size = 3,
size_names = 5,
y_names = NA,
ylim_modif = c(1, 1),
nb_samples_info = TRUE,
plotly_version = FALSE,
...
)
physeq |
(required): a |
fact |
(default: NULL) Name of the factor in |
merge_sample_by |
(default: NULL) if not |
rarefy_after_merging |
Rarefy each sample after merging by the modalities merge_sample_by |
inverse_side |
Inverse the side (put the right modality in the left side). |
left_name |
Name fo the left sample. |
left_name_col |
Color for the left name |
left_fill |
Fill fo the left sample. |
left_col |
Color fo the left sample. |
right_name |
Name fo the right sample. |
right_name_col |
Color for the right name |
right_fill |
Fill fo the right sample. |
right_col |
Color fo the right sample. |
log10trans |
(logical) Does abundancy is log10 transformed ? |
nudge_y |
A parameter to control the y position of abundancy values. If a vector of two values are set. The first value is for the left side. and the second value for the right one. If one value is set, this value is used for both side. |
geom_label |
(default: FALSE, logical) if TRUE use the |
text_size |
size for the number of sequences |
size_names |
size for the names of the 2 samples |
y_names |
y position for the names of the 2 samples. If NA (default), computed using the maximum abundances values. |
ylim_modif |
vector of two values. Modificator (by a multiplication) of ylim. If one value is set, this value is used for both limits. |
nb_samples_info |
(default: TRUE, logical) if TRUE and merge_sample_by is set, add the number of samples merged for both levels. |
plotly_version |
If TRUE, use |
... |
Other arguments for the ggplot function |
A plot
Adrien Taudière
data_fungi_2Height <- subset_samples(data_fungi_mini, Height %in% c("Low", "High"))
biplot_pq(data_fungi_2Height, "Height", merge_sample_by = "Height")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.