I have a list x here:

I want to show the relationship between the elements like this:

Can anyone tell me how to do this in R?
Thank you very much!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
First, build a matrix of all pairs from your original list:
Then, use one of the methods shown here: Pairwise interaction matrix in R. I like the one using graph theory tools 🙂