igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] interactive plot on shiny


From: Wenliang Zhao
Subject: Re: [igraph] interactive plot on shiny
Date: Wed, 12 Apr 2017 15:09:15 -0400

Hi Gabor,

Thanks for your answer. How can I set the column names of layout so that nearPoints can match x,y axes name with layout columns? I probably want to make a dataframe df with column (x, y, nodename, other_info), where x, y are coordinates info from layout.

cheers,
Wenliang

On Tue, Apr 11, 2017 at 9:43 AM, Gábor Csárdi <address@hidden> wrote:
Generate the coordinates first, by calling the layout_* function
directly, and use that in plot().

G.

On Tue, Apr 11, 2017 at 2:40 PM, Wenliang Zhao
<address@hidden> wrote:
> Hi All,
>
> I am trying to make an interactive plot on shiny using igraph. The target is
> when I click a node of current graph, it can generate a separate fluidRow to
> show the information of current node. I see the solution using input$click
> to retrieve the coordinates info of mouse. Then there is nearPoints function
> to retrieve corresponding rows for current mouse position.
>
> To do that, I need x,y coordinates of each node stored in a dataframe. I
> plot the graph using default layout (radial style) without any specification
> of coordinates before plotting. May I wonder how can I get the coordinates
> info after graph plotted?
>
> --
> cheers,
>
> Wenliang Zhao
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



--
cheers,

Wenliang Zhao
Master in Computer Science,
Courant Institute of Mathematical Sciences,
New York University
Cell: 305-781-5829

reply via email to

[Prev in Thread] Current Thread [Next in Thread]