Skip to content

Commit 70c0cc9

Browse files
committed
fix
1 parent e3b50c2 commit 70c0cc9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

R/plot.parameters_pca_graph.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646
df_wide,
4747
select = -exclude,
4848
names_to = "Factor",
49-
values_to = "Loading",
50-
regex = TRUE
49+
values_to = "Loading"
5150
)
5251

5352
# 2. Process node metadata (Colors and Ordering) ----------------------------
@@ -184,7 +183,7 @@
184183
graph <- tidygraph::tbl_graph(nodes = nodes, edges = edges, directed = TRUE)
185184

186185
# Plot using ggraph
187-
ggraph::ggraph(graph, layout = "manual", x = nodes$x, y = nodes$y) +
186+
p <- ggraph::ggraph(graph, layout = "manual", x = nodes$x, y = nodes$y) +
188187

189188
# -- EDGES --
190189
ggraph::geom_edge_link(
@@ -263,6 +262,8 @@
263262
plot.margin = ggplot2::margin(20, 20, 20, 20)
264263
) +
265264
ggplot2::labs(title = title)
265+
266+
suppressWarnings(p)
266267
}
267268

268269

0 commit comments

Comments
 (0)