igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] How to depict a Network with Donut shaped vertices in Igrap


From: Gábor Csárdi
Subject: Re: [igraph] How to depict a Network with Donut shaped vertices in Igraph
Date: Sun, 9 Jul 2017 20:43:23 +0100

How about plotting the network a second time, on top, with slightly
smaller vertex sizes, and no edges?

Gabo

On Mon, Jul 3, 2017 at 7:51 PM, Charles Novaes de Santana
<address@hidden> wrote:
> Dear all,
>
> I would like to depict a network with Ring/Donut Shaped Vertices. I did not
> find such a shape in Igraph documentation, but I found a pie shaped instead.
> Like the following code (and the resulting attached figure):
>
> library(igraph)
> g <- make_ring(10) values <- lapply(1:10, function(x) sample(1:10,3)) if
> (interactive()) { plot(g, vertex.shape="pie", vertex.pie=values,
> vertex.pie.color=list(heat.colors(5)), vertex.size=seq(10,30,length=10),
> vertex.label=NA) }
>
> Do you know a way of turning a pie shaped vertex into a ring/donut shaped
> vertex using Igraph itself? I searched for a "vertex.pie.hole" parameter,
> but it does not exist. The easiest way I see to do this is to depict "white
> points" in the centroids of the vertices, but it is clearly not an ideal
> situation.
>
> I know it is possible to define our own vertex shape, but I must confess it
> is been really hard for me to do this for a ring/donut shape.
>
> Thanks a lot for your attention,
>
> Best,
>
> Charles
>
> --
> Um axé! :)
>
> --
> Charles Novaes de Santana, PhD
> https://github.com/cndesantana
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>



reply via email to

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