title: network diagram from binary matrix R
body: <p>I have the following binary matrix that show in which article each keyword shows up. </p>
  
  <pre><code>        keyword1  keyword2  keyword3
    art1    0          1        0
    art2    1          1        0
    art3    0          0        1
  </code></pre>
  
  <p>I tried the technique below to create an adjacency matrix but I am not sure if it is right and what the values mean</p>
  
  <pre><code>  df1 &lt;- data.frame(keyword1=c(0,1,0),keyword2=c(1,1,0),keyword3=c(0,0,1),row.names=c("art1","art2","art3"))
    df1.mt &lt;- as.matrix(df1)
    df1.adj &lt;- t(df1.mt) %*% df1.mt
  </code></pre>
  
  <p>at this point I have created the following adjacency matrix</p>
  
  <pre><code>          keyword1  keyword2  keyword3
    keyword1   1         1        0
    keyword2   1         2        0
    keyword3   0         0        1
  </code></pre>
  
  <p>Is this an adjacency matrix? 
  does it show the relationship between the keywords by the articles?
  Can I use this to draw a network diagram, and please how?</p>
  
  <p>Thank you for the help.</p>