Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started