Note that there are some explanatory texts on larger screens.

plurals
  1. POPlotting interaction in R graphs
    primarykey
    data
    text
    <p>I have following type of data (although number of data points is very large)</p> <pre><code># property data name &lt;- c("A", "B", "C", "D") diameter &lt;- c(4.3, 8.3,1.2, 3.3) X &lt;- c( 1, 2, 3, 4) Y &lt;- c(1, 3, 3, 4) colr &lt;- c(10, 20, 34, 12) propdata &lt;- data.frame (name, diameter, X, Y, colr) # interaction data name1 &lt;- c("A", "A", "A", "B", "B") name2 &lt;- c("B", "C", "D", "C", "D") score &lt;- c(1.1, 2.2, 5.4, 3.1, 2.0) relation &lt;- data.frame (name1, name2, score) </code></pre> <p>I want to create a graph similar to following, such that it has following property.</p> <p>(</p> <pre><code>1) diameter of circles is governed by propdata$diameter (2) Position in xy field is governed by cordinates of propdata$X and propdata$y (3) Fill color of the circle is controlled by propdata$colr (4) Interaction is governed by relation data.frame, name1 and name2 elements will be connected and weight of the line is govenmened by relation$score. </code></pre> <p><img src="https://i.stack.imgur.com/4aSMH.jpg" alt="enter image description here"></p> <p>Is it possible to make such graph with existing R base or any popular graphics software or need a more specialized software. </p> <p>EDITS:</p> <p>This is as far as I go using bubble plot:</p> <pre><code> p &lt;- ggplot(propdata, aes(X,Y,size = diameter, label=name)) p &lt;- p + geom_point(colour= "red")+geom_text(size=3) # colour = colr does not work p </code></pre> <p><img src="https://i.stack.imgur.com/IM3kH.jpg" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload