easystats/see

Plot Bayesian correlation matrix

nsolsen85 opened this issue · 1 comments

Hi!

When I attempt to plot a Bayesian correlation matrix generated by correlation() via the package see

(results_4 <- correlation(df_4, bayesian = TRUE, bayesian_ci_method = "hdi"))
colnames(results_4)[3] <- "r"
p4 <- plot(results_4, show_ci = TRUE, stars = TRUE) +
scale_edge_color_gradient2(low = "#FF0000",high = "#008000")+
scale_edge_width(range = c(1, 3))
p4

I now get the following error message:
'gpar' element 'lwd' must not be length 0

half a year ago or so, the code worked.

I have tried reinstalling packages like insights, correlation, see, ggplot2...

Ps. On a smaller note, since the plotting methods requires the column to be called 'r', and the correlation() function generates a column called 'rho', it would probably be good if they were coordinated.

Thanks in advance!
Niels

I found that removing and reinstalling the packages

tidygraph
rlang
cli

resolved the issue.