AndrewLJackson / SIBER

ellipse and convex hull fitting package for stable isotope data
36 stars 14 forks source link

How do I identify which community each color ellipse corresponds to? #103

Closed LiXiHan26 closed 4 months ago

LiXiHan26 commented 7 months ago

Hello developers, I encountered this problem recently when I was learning to use this software. I divided Groups and communities into 6 groups. After drawing the picture, I don’t know how to distinguish which community each ellipse corresponds to. , please tell me how I can distinguish them. If possible, I can distinguish them and add a legend or change the color for each different group. The following is my code. Because I am a beginner and I don’t understand many parts, please help me solve it. Thank you! ! siber.example <- createSiberObject(DCniche) siber.example[["sample.sizes"]][is.na(siber.example[["sample.sizes"]])] <- 0 community.hulls.args <- list(col = 1, lty = 1, lwd = 1) group.ellipses.args <- list(n = 100, p.interval = 0.95, lty = 2, lwd = 3) group.hull.args <- list(lty = 2, col = "black") plotSiberObject(siber.example, ax.pad = 0.05, ###x/y axis hulls = F, community.hulls.args, ellipses = F, group.ellipses.args, group.hulls = T, group.hull.args, bty = "L", iso.order = c(1,2), xlab=expression({delta}^13C~'\u2030'), ylab=expression({delta}^15N~'\u2030'), cex = 0.5)

AndrewLJackson commented 7 months ago

 Hi

There are several vignette examples in the package documentation that illustrate how to link groups to the plotted ellipses, including a ggplot example that is probably most intuitive and least risk of making a mistake

Best wishes Andrew

--

Dr Andrew Jackson, PhD, FTCD Director Biology and Biomedical Sciences degree TR060 Associate Professor - Zoology Irish Research Council Laureate School of Natural Sciences, Department of Zoology Trinity College Dublin, the University of Dublin Dublin 2, Ireland.

@.*** http://www.tcd.ie/Zoology/research/http://www.tcd.ie/Zoology/research/groups/jackson/groups/jackson/

From: L1x1han @.> Date: Thursday, 7 March 2024 at 09:46 To: AndrewLJackson/SIBER @.> Cc: Subscribed @.***> Subject: [AndrewLJackson/SIBER] How do I identify which community each color ellipse corresponds to? (Issue #103)

Hello developers, I encountered this problem recently when I was learning to use this software. I divided Groups and communities into 6 groups. After drawing the picture, I don’t know how to distinguish which community each ellipse corresponds to. , please tell me how I can distinguish them. If possible, I can distinguish them and add a legend or change the color for each different group. The following is my code. Because I am a beginner and I don’t understand many parts, please help me solve it. Thank you! ! siber.example <- createSiberObject(DCniche) siber.example[["sample.sizes"]][is.na(siber.example[["sample.sizes"]])] <- 0 community.hulls.args <- list(col = 1, lty = 1, lwd = 1) group.ellipses.args <- list(n = 100, p.interval = 0.95, lty = 2, lwd = 3) group.hull.args <- list(lty = 2, col = "black") plotSiberObject(siber.example, ax.pad = 0.05, ###x/y axis hulls = F, community.hulls.args, ellipses = F, group.ellipses.args, group.hulls = T, group.hull.args, bty = "L", iso.order = c(1,2), xlab=expression({delta}^13C~'\u2030'), ylab=expression({delta}^15N~'\u2030'), cex = 0.5)

— Reply to this email directly, view it on GitHubhttps://github.com/AndrewLJackson/SIBER/issues/103, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAZLLMHQIC3I6KZ2EWIMSNDYXAZOXAVCNFSM6AAAAABEKUYGUGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3TGNBTGI3TIMA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

LiXiHan26 commented 7 months ago

Thank you for your answer, I will take a look at the document content again