You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @gvegayon! As discussed, here is the error we bumped into.
library(igraph)
#> #> Attaching package: 'igraph'#> The following objects are masked from 'package:stats':#> #> decompose, spectrum#> The following object is masked from 'package:base':#> #> union
library(netplot)
#> Loading required package: grid#> #> Attaching package: 'netplot'#> The following object is masked from 'package:igraph':#> #> ego
set.seed(123)
g<- erdos.renyi.game(50, 0.2)
teams<- c("Utah", "Wyoming", "Idaho", "Nevada")
V(g)$team<- sample(teams, vcount(g), replace=TRUE)
# Map teams to sidesteam_sides<- c(Utah=4, Wyoming=6, Idaho=3, Nevada=5)
sides<-team_sides[V(g)$team]
# Map teams to colorsteam_colors<- c(Utah="red", Wyoming="darkgreen", Idaho="blue", Nevada="purple")
# Get color for each vertex vertex_colors<-team_colors[V(g)$team]
# Plot# Create empty plot
plot(0,type="n", axes=FALSE)
nplot(g,
vertex.color=~team,
vertex.nsides=~team)
#> Error in eval(netenv$vertex.nsides, envir = data): invalid 'envir' argument of type 'closure'
Hey @gvegayon! As discussed, here is the error we bumped into.
Created on 2023-10-04 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: