Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8416657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:49:27+00:00 2026-06-10T01:49:27+00:00

I have a data.frame showing the strength of the relationship between all possible combination

  • 0

I have a data.frame showing the strength of the relationship between all possible combination of the variables at site x with the variable at site y.

set.seed(1410)
df<-data.frame(
"site.x"=c(rep("a",4),rep("b",4),rep("c",4),rep("d",4)),
"site.y"=c(rep(c("e","f","g","h"),4)),
"bond.strength"=sample(1:100,16, replace=TRUE))

   site.x site.y bond.strength
    a      e            27
    a      f            54
    a      g            94
    a      h            15
    b      e            58
    b      f            50
    b      g            67
    b      h            51
    c      e            58
    c      f             5
    c      g            48
    c      h            32
    d      e             5
    d      f            13
    d      g            84
    d      h            39

I need a diagram that can summarise the information in df in one figure. I was thinking perhaps a permutation diagram like this…..

enter image description here

Any suggestions how I would go about something like this? Thank you kindly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T01:49:28+00:00Added an answer on June 10, 2026 at 1:49 am

    This gives something similar using your data:

    library(igraph)
    df<-graph.data.frame(df)
    V(df)$names <- c("a","b","c","d","e","f","g","h")
    layOUT<-data.frame(x=c(rep(1,4),rep(2,4)),y=c(4:1,4:1))
    E(df)[ bond.strength < 101 ]$color <- "red"
    E(df)[ bond.strength < 67 ]$color <- "yellow"
    E(df)[ bond.strength < 34 ]$color <- "green"
    V(df)$color <- "white"
    l<-as.matrix(layOUT)
    plot(df,layout=l,vertex.size=10,vertex.label=V(df)$names,
    edge.arrow.size=0.01,vertex.label.color = "black")
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have data frame with some numerical variables and some categorical factor variables. The
I have a data frame with two qualitative variables (Q1, Q2) which are both
I have a data frame of integers that is a subset of all of
I have data that can be mimicked in the following manner: set.seed(1234) foo <-
I have the data frame data<-data.frame(id=c(A,A,B,B), day=c(5,6,1,2), duration=c(12,1440,5,6), obs.period=c(60, 60,100,100)) showing Subject ID, day
I have a data frame consisting of the columns; name, time, count. Showing how
I have a data frame with start dates and end dates, along with the
I have a data frame like below (20,000 rows by 49 cols). Each row
I have a data frame that is some 35,000 rows, by 7 columns. it
I have a data frame consisting of results from multiple runs of an experiment,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.