Displaying 8 results from an estimated 8 matches for "test_adjac".
2024 Feb 25
1
igraph_vertex
...need to provide the two raw tables. Find here the reproducible example.
Kind regards
Sibylle
# R-labraries
library(circlize)
library(ggplot2)
library(igraph)
library(tidyverse)
library(RColorBrewer)
library(stringi)
library(scico)
library(plotly)
library(ggraph)
# Tables
aes<-read.csv("Test_adjac.csv", row.names = 1)
details<-read.csv("Test_cat.csv")
# Edge table, reorganisation
aes_collapsed<-aes %>%
rownames_to_column(var='Names') %>%
tidyr::gather(target, weight, 1:ncol(aes)+1) %>%
dplyr::filter(weight != 0) %>%
mutate(weight = ifelse(wei...
2024 Feb 25
1
igraph_vertex
...egards
> Sibylle
>
> # R-labraries
> library(circlize)
> library(ggplot2)
> library(igraph)
> library(tidyverse)
> library(RColorBrewer)
> library(stringi)
> library(scico)
> library(plotly)
> library(ggraph)
>
>
> # Tables
> aes<-read.csv("Test_adjac.csv", row.names = 1)
> details<-read.csv("Test_cat.csv")
>
> # Edge table, reorganisation
> aes_collapsed<-aes %>%
> ? rownames_to_column(var='Names') %>%
> ? tidyr::gather(target, weight, 1:ncol(aes)+1) %>%
> ? dplyr::filter(weight != 0)...
2024 Feb 26
1
igraph_vertex
...rclize)
> > library(ggplot2)
> > library(igraph)
> > library(tidyverse)
> > library(RColorBrewer)
> > library(stringi)
> > library(scico)
> > library(plotly)
> > library(ggraph)
> >
> >
> > # Tables
> > aes<-read.csv("Test_adjac.csv", row.names = 1)
> > details<-read.csv("Test_cat.csv")
> >
> > # Edge table, reorganisation
> > aes_collapsed<-aes %>%
> > ? rownames_to_column(var='Names') %>%
> > ? tidyr::gather(target, weight, 1:ncol(aes)+1) %>%
>...
2024 Mar 22
1
geom_edge & color
...Test_cat.csv
Names
Subcategory_type
sources.cyto
source
Factor
A.A
material
"A"
A
1
B.B
material
"B"
B
1
C.C
regulation
"C"
C
1
D.D
regulation
"D"
D
1
E.E
habitat
"E"
E
1
F.F
cultural
"F"
F
1
Test_adjac.csv
A.A
B.B
C.C
D.D
E.E
F.F
A.A
0
0
5
5
5
5
B.B
4
0
1
1
1
1
C.C
5
5
0
5
4
2
D.D
5
0
5
0
5
3
E.E
5
1
5
5
0
4
F.F
1
2
3
4
5
5
Edges_table-Test.csv
Names
target
weight
relationship
B.B
A.A
4
pos
C.C
A.A
5
pos
D.D
A.A...
2024 Feb 24
1
igraph_vertex
On 2/24/24 12:10, Kimmo Elo wrote:
> Hi,
>
> first of all, your example was not reproducible! But once I added
> "library(igraph)" and "library(scico)" plus generally replaced
> "aes_collapsed" by "edge_list", I started to work :-)
After copying your lead in that replacement the error I got was:
network <-
2024 Mar 22
1
geom_edge & color
...gt;
>
> D.D
>
> regulation
>
> "D"
>
> D
>
> 1
>
>
> E.E
>
> habitat
>
> "E"
>
> E
>
> 1
>
>
> F.F
>
> cultural
>
> "F"
>
> F
>
> 1
>
> ?
>
> Test_adjac.csv
>
> ????????
> A.A
>
> B.B
>
> C.C
>
> D.D
>
> E.E
>
> F.F
>
>
> A.A
>
> 0
>
> 0
>
> 5
>
> 5
>
> 5
>
> 5
>
>
> B.B
>
> 4
>
> 0
>
> 1
>
> 1
>
> 1
>...
2024 Feb 26
1
igraph_vertex
...rclize)
> > library(ggplot2)
> > library(igraph)
> > library(tidyverse)
> > library(RColorBrewer)
> > library(stringi)
> > library(scico)
> > library(plotly)
> > library(ggraph)
> >
> >
> > # Tables
> > aes<-read.csv("Test_adjac.csv", row.names = 1)
> > details<-read.csv("Test_cat.csv")
> >
> > # Edge table, reorganisation
> > aes_collapsed<-aes %>%
> > rownames_to_column(var='Names') %>%
> > tidyr::gather(target, weight, 1:ncol(aes)+1) %>%
>...
2024 Mar 21
1
geom_edge & color
Dear Sibylle,
your example is not working! E.g. no data for "aes_collapsed".
Best,
Kimmo
ke, 2024-03-20 kello 19:28 +0100, SIBYLLE ST?CKLI via R-help kirjoitti:
> Dear community
>
> I am using ggraph to plot a network analysis. See part 2 in the working
> example.
> Besides different colors for different groups of nodes:
> --> geom_node_point(aes(size =