Open bbergsneider opened 6 days ago
Hi Brandon. What version of the package are you using? Can you share the code you used? Hudson
On Sat, Sep 28, 2024, 6:03 PM Brandon Bergsneider @.***> wrote:
Thank you for this fantastic package. I am recently experiencing a bug in which when I plot an EGAnet object, the legend.names parameter no longer works and does not allow me to define custom legend names (as described in this tutorial: https://r-ega.net/articles/plotting.html#change-names).
Is this a bug? Is there another way to define legend names?
Thank you!
— Reply to this email directly, view it on GitHub https://github.com/hfgolino/EGAnet/issues/162, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFLKGY7WGTL4CK2DLLSJ7LZY4RSPAVCNFSM6AAAAABPA7F7PCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2TINJTGU4TSMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I'm using version 2.0.8. Here is my code:
library(dplyr)
library(qgraph)
library(EGAnet)
df <- read.csv("severity_data.csv", stringsAsFactors = FALSE) %>% select(-Study,-ptid)
cor_matrix <- cor_auto(df, detectOrdinal = FALSE, npn.SKEPTIC = TRUE, forcePD = TRUE)
ega <- EGA(cor_matrix, n = nrow(df), plot.EGA = FALSE)
plot(ega, plot.args = list(node.size = 8, label.size = 3.5, color.palette = c("#387db8", "#e4211c", "#4caf4a"), legend.names=c("Dimension 1", "Dimension 2", "Dimension 3")))
And this is the output, which does not include the legend names:
Thanks!
Hi @bbergsneider ,
We've dropped the plot.args
, so you can directly drop arguments into the plot
function.
I believe that should work
Thank you for this fantastic package. I am recently experiencing a bug in which when I plot an EGAnet object, the legend.names parameter no longer works and does not allow me to define custom legend names (as described in this tutorial: https://r-ega.net/articles/plotting.html#change-names).
Is this a bug? Is there another way to define legend names?
Thank you!