@@ -182,25 +182,25 @@ plot_emap_static <- function(emg,
182
182
183
183
# # edges first, so they don't cover anything
184
184
ggraph :: geom_edge_link0(
185
- aes(edge_width = width_not_scaled ),
185
+ aes(edge_width = .data $ width_not_scaled ),
186
186
# # adding some transparency here
187
187
edge_colour = scales :: alpha(" lightgrey" , 0.7 )) +
188
188
189
189
# # hull on top, so that the nodes still are in the "native color"
190
190
ggforce :: geom_mark_hull(
191
- aes(x , y ,
192
- fill = cluster_label ,
191
+ aes(.data $ x , .data $ y ,
192
+ fill = .data $ cluster_label ,
193
193
# # why not having the border of the hull too "colored in sync"
194
- color = cluster_label ,
195
- label = cluster_label ),
194
+ color = .data $ cluster_label ,
195
+ label = .data $ cluster_label ),
196
196
label.fill = scales :: alpha(" white" , 0.1 ),
197
197
concavity = 10 ,
198
198
expand = unit(7 , " mm" ),
199
199
alpha = 0.15
200
200
) +
201
201
202
202
# # handling the individual nodes at the end
203
- ggraph :: geom_node_point(aes(size = size , fill = I(V(emg )$ color )), shape = 21 , color = " black" ) + # I(V(emg_for_gggraph)$ # Adjust border thickness) + # Use `I()` to prevent scaling
203
+ ggraph :: geom_node_point(aes(size = .data $ size , fill = I(V(emg )$ color )), shape = 21 , color = " black" ) + # I(V(emg_for_gggraph)$ # Adjust border thickness) + # Use `I()` to prevent scaling
204
204
# ggplot2::scale_fill_identity() +
205
205
ggplot2 :: scale_size_continuous(range = c(7 , 25 )) + # Adjust min and max sizes
206
206
0 commit comments