Re: [R] Visualizing a graph in the coordinate system given by x using vanila R

2017-05-07 Thread Jim Lemon
Hi Ante, As this is a homework problem, you will probably get a number of negative replies. You might want to look at the color.scale.lines function in the plotrix package. Perhaps you will find some clues in the code. Jim On Mon, May 8, 2017 at 9:22 AM, Ante Dilber wrote: > So I have the follow

[R] Visualizing a graph in the coordinate system given by x using vanila R

2017-05-07 Thread Ante Dilber
So I have the following problem, I need to write a function plotGraph(x , y) in R with the following properties: The argument x may be a matrix or data frame with two columns containing coordinates of vertices of a graph. The argument y must be a quadratic adjacency matrix that has as many rows an