Question: as _ adjacency _ matrix ( network , attr = weight, type = both ) | > as . matrix ( ) | > as
asadjacencymatrixnetwork attr "weight", type "both"
asmatrix astibblerownames "from"
# pivot from wide to long format
pivotlongerfrom, namesto to valuesto "weight"
ggplot geomtileaesx to y from, fill weight color "gray
scalefillgradientlow "white", high "darkblue"
themeaxistext.x elementtextangle hjust vjust
why doesn't the code works
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
