ChiLiubio / microeco

An R package for data analysis in microbial community ecology
GNU General Public License v3.0
195 stars 56 forks source link

Sample ID in rarefactions curves #355

Closed jamorillo closed 4 months ago

jamorillo commented 5 months ago

Hi, Would be possible to show SampleIDs in the rarefaction curves plot? It seems from the available options that this might not be straightforward. Many thanks, jose

something like this: rarefaction

ChiLiubio commented 5 months ago

Hi. I have updated the mecodev package and added several parameters. Please reinstall it from github and try again.

library(mecodev)
library(microeco)
data(dataset)
dataset$sample_table <- dataset$sample_table[1:10, ]
dataset$tidy_dataset()
t1 <- trans_rarefy$new(dataset = dataset, depth = c(0, 10, 50, 400, 800))
t1$plot_rarefy(show_samplename = TRUE, samplename_size = 5, samplename_color = "black")
t1$plot_rarefy(color_values = rep("grey50", 20), show_samplename = TRUE, show_legend = FALSE)
jamorillo commented 5 months ago

Hello, Sorry for the delay, I had a problem reinstalling the packages, now OK- Thank you for the enhancement! Regards, jose