igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Questions about decompose.graph?[can not support translucen


From: Gábor Csárdi
Subject: Re: [igraph] Questions about decompose.graph?[can not support translucent when save figures as ps, pdf or tiff ]
Date: Wed, 12 Oct 2011 11:20:39 -0400

This is definitely device dependent, and might be even operating
system dependent. E.g. exporting it to a PDF works fine for me in OS
X:

g <- graph.ring(10)
pdf("/tmp/a.pdf")
plot(g, mark.groups=list( c(1:5), c(5:10) ) )
dev.off()

You need to use an R graphics device that supports it. Probably try PDF first.

Gabor

On Wed, Oct 12, 2011 at 11:16 AM, Zhijiang Wang
<address@hidden> wrote:
> Hi Gabor,
>
> After using plot.communities, I want to save the figures with highlight
> communities by translucent colors.
> But in R, the feedback is:
> the device cannot support translucent In xspline(...)...
> How to solve the problem
>
> Thanks.
>
>
> 于 2011-10-11 22:03, Gábor Csárdi 写道:
>
> I believe so. E.g.
>
> g <- graph.ring(10)
> plot(g, mark.groups=list( c(1:5), c(5:10) ) )
>
> Gabor
>
> On Tue, Oct 11, 2011 at 4:55 AM, Zhijiang Wang
> <address@hidden> wrote:
>
> Hi Gabor,
>
> Please let me ask another quick question
>
> Is plot.communities suit for overlapped community plot?
>
> 于 2011-10-7 23:47, Gábor Csárdi 写道:
>
> In the development version you can highlight the communities with the
> mark.groups option of the plot.communities function. This is also the
> default, so you only need something like:
>
>      karate <- graph.famous("Zachary")
>      wc <- walktrap.community(karate)
>      plot(wc, karate)
>
> It only works well for smaller graphs, obviously.
>
> Best,
> Gabor
>
> On Thu, Oct 6, 2011 at 4:16 PM, Tamás Nepusz <address@hidden> wrote:
>
> In fact, I am eager to know how to draw like that, that is, setting a
> background color for each area of component.
>
> I don't know whether that is possible in R or not -- I develop the Python
> interface of igraph although I got to know a few things about the R
> interface as well. Maybe someone else on the list can provide a solution.
>
> --
> T.
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
>
>
>
> --
>
> Best wishes,
>
> Zhijiang Wang
>
> -------------------------------------------
>
>
>
>
> --
>
> Best wishes,
>
> Zhijiang Wang
>
> --------------------------------------------
>
> PhD Candidate
>
> Room 407, East Segment, Material Science Building,
>
> The International WIC Institute,
>
> Brain Informatics,
>
> College of Computer Science and Technology,
>
> Beijing University of Technology,
>
> Beijing, China.



-- 
Gabor Csardi <address@hidden>     MTA KFKI RMKI



reply via email to

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